- Affected Version
- WoltLab Suite 3.0
Hi @all,
I'm trying to install the App behind a Apache2 Proxy into a Docker Container. But it doesn't work for me with my current config.
My VHost-Config:
Apache Configuration
<VirtualHost my.domain:80>
RewriteEngine On
RewriteCond %{SERVER_NAME} =my.domain
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost my.domain:443>
ServerAdmin mail@dselinger.biz
ServerName my.domain
SSLEngine On
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
SSLProxyCheckPeerExpire Off
RequestHeader set Host "my.domain"
RequestHeader add X-Forwarded-Ssl on
RequestHeader set X-Forwarded-Proto "https"
ProxyPreserveHost On
ProxyPass / https://localhost:8905/
ProxyPassReverse / https://localhost:8905/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/my.domain/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/my.domain/privkey.pem
</VirtualHost>
</IfModule>
Display More
And my docker-compose.yml:
Code
version: "2"
services:
web:
image: webdevops/php-apache
container_name: circle
ports:
- "8905:443"
depends_on:
- "mysql"
volumes:
- ./bb:/app
# https://hub.docker.com/_/mysql/
mysql:
image: mysql
container_name: circle-mysql
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: pw
MYSQL_USER: circle
MYSQL_PASSWORD: pw
MYSQL_DATABASE: circle
Display More