Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@gitlab:/etc/apache2/sites-available# cat openproject.conf
- Include /etc/openproject/addons/apache2/includes/server/*.conf
- <VirtualHost *:80>
- ServerName project.omniteklabs.com
- RewriteEngine On
- RewriteRule ^/?(.*) https://%{SERVER_NAME}:443/$1 [R,L]
- </VirtualHost>
- <VirtualHost *:443>
- ServerName project.omniteklabs.com
- DocumentRoot /opt/openproject/public
- ProxyRequests off
- Include /etc/openproject/addons/apache2/includes/vhost/*.conf
- # Can't use Location block since it would overshadow all the other proxypass directives on CentOS
- ProxyPass / http://127.0.0.1:6000/ retry=0
- ProxyPassReverse / http://127.0.0.1:6000/
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement