AI Personal Learning
and practical guidance

Domestic server binding non-record domain name and deploy wordpress

1. Bind a domain name in cloudflare

 


2. cloudflare Tunnels Deploy on the server as per the tutorial and set up forwarding ports and domains for the website

 

3. Server web directory binding 172.0.0.1: port (nginx)

 

4. Due to nginx intranet port mapping non-HTTPS, resulting in protocol confusion and possible redirection, find wp-includes/load.php, search for is_ssl() to modify parameters

 

function is_ssl() {
if ( isset( $_SERVER['HTTPS'] ) ) {
if ( 'on' === strtolower( $_SERVER['HTTPS'] ) ) {
return true;
}
if ( '1' === (string) $_SERVER['HTTPS'] ) {
return true;
}
} elseif ( isset( $_SERVER['SERVER_PORT'] ) && ( '443' === (string) $_SERVER['SERVER_PORT'] ) ) {
return true;
}
return false;
}
For return false read return true
AI Easy Learning

The layman's guide to getting started with AI

Help you learn how to utilize AI tools at a low cost and from a zero base.AI, like office software, is an essential skill for everyone. Mastering AI will give you an edge in your job search and half the effort in your future work and studies.

View Details>
May not be reproduced without permission:Chief AI Sharing Circle " Domestic server binding non-record domain name and deploy wordpress

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish