Content
You are here:
Link redirection - Strange behavior
Added by Juliano Casagrande over 5 years ago
Hi, I'm facing a strange behavior at the redirection. I've changed the "Host Name" to op.xxx.com.br (using http) and redirected the IP via proxy link redirection to the same address.
But some links at OpenProject have not changed to the "Host Name" I've selected, as you can see at the picture:
Can you please help me solve this issue. Thanks.
Replies (6)
Another thing that I've notice is the login address:
http://op.xxx.com.br/login?back_url=http%3A%2F%2F10.52.3.103%2F
What is "back_url"?
Anyone?
Hi Juliano,
OpenProject uses two sources to generate links from:
you have likely either:
ProxyPreserveHost On
that should pass the host correctly. In a packaged installation, please also check the output ofopenproject config | grep SERVER_
to get all server related configuration options such as the hostname which is used for some link generationAdministration > System settings
, which if you use a packaged installation is set to the value ofopenproject config:get SERVER_HOSTNAME
and corresponds to the value you set in the initial configuration wizard.Please see the configuration guide for the packaged installation for more information: https://www.openproject.org/download-and-installation/#configuration
Best,
Oliver
Thank you!
In fact, we are using IIS here. Do you know if the ARR can perform this emulation?
Oliver Günther wrote:
I'm currently stuck with the same problem. Although I do not (yet) have the solution, I guess these are similar issues:
Hi Günther,
tried both, without success.
1. Added
ProxyPreserveHost on
in/etc/apache2/sites-enabled/openproject.conf
and restarted Apache. Still having the problem.openproject config
gives me:HOST=127.0.0.1
(...)
SERVER_HOSTNAME=projekte.mydomain.foo
2.
Administration > System settings
is already set toprojekte.mydomain.foo
Running packaged-installation on Ubuntu 18.04 LTS.
Any idea?
Best
Tobias
Oliver Günther wrote: