WP behind Apache reverse Proxy not working
-
Hello,
i tried to find help with this via google and reddit homelab. no succes for no. so sry but i think i have to bother you guys now. ??
Need Help with WordPress behind an Apache Reverse Proxy (no CSS)
byu/Blackraz0r inhomelabbasically it should be easy:
i have an apache reverse proxy wich servers my whole lab. Organizr, Nextcloud, Wekan, all those webservices, you get the idea.
but it just does not work with WP
so far my reverse proxy config looks like this:
Docker Compose file:
version: '2' services: db: image: mysql:5.7 volumes: - wp_db_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: wordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress wordpress: image: wordpress:latest volumes: - wp_data:/var/www/html ports: - 9500:80 restart: always environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress
Reverse Proxy Apache HTTP:80
<VirtualHost home.mydomain.de:80> ServerName home.mydomain.de ProxyPass / https://10.250.30.220:9500/ ProxyPassReverse / https://10.250.30.220:9500/ RewriteEngine on RewriteCond %{SERVER_NAME} =home.mydomain.de RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>
then i let certbot create a file for HTTPS:443:
<IfModule mod_ssl.c> <VirtualHost home.mydomain.de:443> ServerName home.mydomain.de ProxyPass / https://10.250.30.220:9500/ ProxyPassReverse / https://10.250.30.220:9500/ SSLCertificateFile /etc/letsencrypt/live/home.mydomain.de/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/home.mydomain.de/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule>
normaly my service would be accesible via home.mydomain.de now.
with WP this is only partially the case. it looks like this:can someone tell my what the error is ?
pls be patient with me. i look for the last magical piece of code to add in the reverse proxy config to make it work. pls help me, im kinda frustrated.
- The topic ‘WP behind Apache reverse Proxy not working’ is closed to new replies.