Advertisement
cadtek

openproject.conf

Mar 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. root@gitlab:/etc/apache2/sites-available# cat openproject.conf
  2. Include /etc/openproject/addons/apache2/includes/server/*.conf
  3.  
  4. <VirtualHost *:80>
  5. ServerName project.omniteklabs.com
  6. RewriteEngine On
  7. RewriteRule ^/?(.*) https://%{SERVER_NAME}:443/$1 [R,L]
  8. </VirtualHost>
  9.  
  10. <VirtualHost *:443>
  11. ServerName project.omniteklabs.com
  12. DocumentRoot /opt/openproject/public
  13.  
  14. ProxyRequests off
  15.  
  16. Include /etc/openproject/addons/apache2/includes/vhost/*.conf
  17.  
  18. # Can't use Location block since it would overshadow all the other proxypass directives on CentOS
  19. ProxyPass / http://127.0.0.1:6000/ retry=0
  20. ProxyPassReverse / http://127.0.0.1:6000/
  21. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement