Added by Michael Schramm over 9 years ago
Hi,
I’ve setup openproject with the docker installation, and use Apache2.4 to proxy the requests to a real domain.
Docker Config:
docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=*** \
-v /var/www/project/logs:/var/log/supervisor \
-v /var/www/project/pgdata:/var/lib/postgresql/9.4/main \
-v /var/www/project/static:/var/db/openproject \
-e EMAIL_DELIVERY_METHOD=smtp \
-e SMTP_ADDRESS=*** \
-e SMTP_PORT=587 \
-e SMTP_DOMAIN=*** \
-e SMTP_AUTHENTICATION=login \
-e SMTP_ENABLE_STARTTLS_AUTO=true \
-e SMTP_USER_NAME="***" \
-e SMTP_PASSWORD="***" \
openproject/community:5.0
Apache2 Config:
<VirtualHost *:80>
ServerName project.local
DocumentRoot /var/www/html/
ProxyRequests On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
I’m still seeing some links in open project being created for localhost:8080 (example is the logo on the top left)
is there some hidden config variable to set this?
Replies (1)
Try adding
ProxyPreserveHost Onin your VirtualHost configuration.
Worked for me