Content
You are here:
OP and HAproxy
Added by Andrea Pedretti over 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 (4)
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
Hello! This post helped me at one point, and I noticed @oliver's request for additional information (from 4yrs ago). If I can help, I just got a basic PFSense > HAProxy > OpenProject (RPM without Apache) working just fine. Across probably 10 forums posts I found all of the information I needed. Happy to share what I did to save someone a few bottles of liqor
Hello! I installed OP on a k8s cluster using Helm and I'm having trouble configuring it. Could you give me some information?
Haproxy (https) > OP (HTTP:8080)