ERR_TOO_MANY_REDIRECTS with apache reverse proxy and subdirectory
-
Hi,
I have to migrate a wordpress to another server, using docker. The homepage works without the proxy (but the other pages not, even after updated the permalinks). I’m stuck for more than week, trying many things without success.
Here is my the apache configuration of the docker :
ServerName my-domain.fr
DocumentRoot /var/www/html
<Directory /var/www/html/ >
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine Onand the apache proxy conf :
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# allow htaccess by default
<Directory /var/www/html>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Location "/my-subdirectory/">
ProxyPass "https://localhost:8054/"
ProxyPassReverse "https://localhost:8054/"
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Location>
ServerName my-domain.fr
SSLCertificateFile /etc/letsencrypt/live/my-domain.fr/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/my-domain.fr/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>The directory in /var/www/html are like this :
index.php log WP www
All the wordpress files are in the WP directory.
I define the home and site_url in wp-config like ths :
define( 'WP_HOME', 'https://my-domain/my-subdirectory' );
define( 'WP_SITEURL', 'https://my-domain/my-subdirectory
/WP' );I checked the database, in wp_options, the settings are the same.
I have the “ERR_TOO_MANY_REDIRECTS” error in the browser when I want to access the home page. I tried many configuration, with no success.
Thanks in advance for any help.
- You must be logged in to reply to this topic.