Content
You are here:
POST redirecting to IP address rather than domain name
Added by Pedro Paulo Palazzo over 6 years ago
Some POST forms on OpenProject direct the request to my server’s IP address rather than to the domain name. So far, I noticed Colors and Project Members have this behavior.
I am using the latest Docker container behind a reverse proxy on a different machine, forwarding connections to the OpenProject server through an SSL Virtual Host. This means the request fails when the page attempts to connect to the Docker IP rather than to the Proxy. The domain name is filled in on the System Settings page, and the behavior described above occurs irrespective of whether I select HTTP or HTTPS.
Replies (4)
Hi Pedro,
can you check what is the
Setting.host_name
in your installation? I suspect that its not set to your domain name. Thus some requests by OpenProject that don’t rely on the hostname given by request.You can verify that setting in Administration > General.
Best,
Oliver
Thanks, Oliver. As I noted above, the Host name in Administration > System settings > General is set to my domain name, as per the attached screenshot. I am using the Docker image with OpenProject version 7.4.5 and PostgreSQL.
I am actually getting the same issue. I am assuming the proxy preserve host is off but I don’t want to mess with that setting as I want this to be portable. Is there any way we can make it use the setting in the admin panel instead of the request host?
I followed this to get it to work, but I'm using nginx as my reverse-proxy: