Content
Broken Links - Private DNS and Public DNS - Hostname Issue
Added by A K over 6 years ago
Hi,
I setup Openproject as a Docker container on my machine with private DNS as openproject.cloud.xxxx.com. Everything worked fine until I offloaded SSL on the proxy which is using Public DNS project.xxxx.com
Now, I am able to access the OpenProject instance on project.xxxx.com, but I am facing many issues where the links are still using openproject.cloud.xxxx.com i.e. Private DNS.
1. When I try to edit the current rate of a member for a project, then it gets redirected to openproject.cloud.xxxx.com/project/name/hourly_rate/edit/…
2. When you try to edit the Roles and Permisssions and Try to save them, it gets redirected to private DNS link only.
3. OpenProject logo (White Image in the center) contains the link to the private DNS.
Hostname is set as Public DNS i.e. Project.xxxx.com.
Protocol is set as HTTP.
If I change the protocol to HTTPS, then more links break like when I try to create a new project and save it, it get redirected to the private DNS.
Everything else works fine on the Public DNS.
Regards
A
Replies (3)
Hi,
I think you still have internal host name somewhere in your configuration. Try
grep -r openproject.cloud.xxxx.com /etc/openproject /opt/openproject
When you’ll find where this old host is stored, simply edit that file and restart openproject service.
I’m using debian package of openproject, not a Docker image, so you may need to slightly adjust paths where your information is stored.
Hi Aidas,
I checked that already, it is not present there.
I did create a new docker container just to make sure that the private DNS is not cached somewhere, but I am still facing this issue.
I think its related to Apache config, which I am currently looking at.
Will update if there is some progress.
Regards
A
Hi,
Got it working, worked around using apache config.
RequestHeader set Host “Project.xxxx.com”
ProxyPreserveHost On
Regards
A