wiki:wordpress_troubleshooting
This is an old revision of the document!
Table of Contents
Wordpress troubleshooting
Too many redirects problem
This happened after WP was installed without SSL and then after some days, SSL was added.
Adding the following lines of code at the end of wp-config.php:
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on';
In the proxy settings for nginx add these directives:
... location / { proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://your-wordpress-docker-upstream$request_uri; } ...
Tested on
- WP installed in docker container behind nginx, with Letsencrypt https
See also
References
wiki/wordpress_troubleshooting.1660645716.txt.gz · Last modified: 2022/08/16 10:28 by antisa