I have an installation of Bitnami wordpress-nginx container running, and after logging into the wp-admin area and select Posts, most navigation works as expected, however some links on edit.php, when clicked, will cause the me to be logged out, and then redirected to login again.
A couple things I have tried:
- The wp-connfig.php have been updated so both WP_HOME and WP_SITEURL point to the FQDN intended: e.g.
define( 'WP_HOME', 'https://www.my-domain.com/' );anddefine( 'WP_SITEURL', 'https://www.my-domain.com/' ); - Using phpMyAdmin and selecting the wordpress database, I did a seach for the IP address and found no hits
- I have run a
grep -R 10.10.10.229 *on both the mounted wp-content folder, and the wordpress installation folder inside the container, and no hits.
One point to note, is the wordpress-nginx container is also behind a different NGINX server which is there only to foward traffic inbound from a single static public IP, to an internal service, based on DNS name matching. This conf looks like:
server {
listen 80;
server_name www.my-domain.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name www.my-domain.com;
ssl_certificate /ssl/fullchain.pem;
ssl_certificate_key /ssl/privkey.pem;
ssl_prefer_server_ciphers on;
proxy_http_version 1.1;
proxy_read_timeout 600s;
location / {
proxy_pass http://10.10.10.229:80;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
}
}
I suspect that the admin links are being generated from the proxy headers in the first reverse proxy in the chain.
Do you know how I might correct links to use FQDN, rather than IP as shown?
