Ezoic Hosting Change
Here are dns changes for Ezoic change for both @ and www Alias records.Create an alias with name = @ and value =
dualstack.aa87e78b083d111e9a4800af31bb8397-869364623.us-east-1.elb.amazonaws.com
Second alias with name = www and vaule =
dualstack.aa87e78b083d111e9a4800af31bb8397-869364623.us-east-1.elb.amazonaws.com |
Own VPS Hosting
root@5fbe841d1f40:/# cd /etc/nginx/conf.d
root@5fbe841d1f40:/etc/nginx/conf.d# nano wordpress.conf
server {
listen 80;
server_name 51sec.org www.51sec.org 132.145.98.41;
location / {
proxy_pass http://132.145.98.41:10000;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
root@5fbe841d1f40:/etc/nginx/conf.d# service nginx restart
Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.
define( 'WP_HOME' , 'http://www.51sec.org' );
define( 'WP_SITEURL' , 'http://www.51sec.org' );
|
Edit functions.php #
If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.- FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor and upload it back to the site.
- Add these two lines to the file, immediately after the initial “<?php” line:
update_option( 'siteurl' , 'http://example.com' );
update_option( 'home' , 'http://example.com' );
|
functions.php
file. Remove them after the site is up and running again.
1
2
3
|
<?php
update_option( 'siteurl' , 'http://example.com' );
update_option( 'home' , 'http://example.com' );
|
References
via Blogger https://ift.tt/39yyumP
July 27, 2020 at 01:47PM Blog