Content
OP and HAproxy
Added by Andrea Pedretti almost 4 years ago
Hello forum
I’ve got an OP system running on SSL in the LAN and it works ok, but when i try to access hook it up to my HAproxy for accessing it from the internet i receive a page not found.
This is my apache conf file:
Include /etc/openproject/addons/apache2/includes/server/*.conf
<VirtualHost *:80>
ServerName openproject.xyz.com
RewriteEngine On
RewriteRule ^/?(.*) https://%{SERVER_NAME}:443/$1 [R,L]
</VirtualHost>
<VirtualHost *:443>
ServerName openproject.xyz.com
DocumentRoot /opt/openproject/public
# ProxyPreserveHost On
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>
I’m forwarding only the port https/443, does the port 6000 need to be exposed as well?
Thanks
Replies (2)
turns out that the problem was with the HAproxy health check mechanism.
I’ve disabled that and everything’s working ok now...
Hi Andrea,
do you have any additional information on how to setup HAproxy with OpenProject? We would like to extend our documentation for these kinds of integrations.
Please note that OpenProject also comes with health check URLs you can plug into your monitoring:
<your domain>/health_checks/all
<your domain>/health_checks/web
<your domain>/health_checks/database
Cheers
Oliver