Content
Link redirection - Strange behavior
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.
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:
- The HOST header information when we're in a request (i.e. you're browsing pages and links are being generated from the request)
- The Setting.host_name value (Administration > System settings) for links that are generated when no request exists - for example, an outgoing mail that is rendered in the backend.
you have likely either:
- Do not properly pass the host name into the proxy/reverse proxy. For Apache, there's a directive called
ProxyPreserveHost Onthat 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 generation - set an invalid host name at
Administration > System settings, which if you use a packaged installation is set to the value ofopenproject config:get SERVER_HOSTNAMEand 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:
Hi Juliano,
OpenProject uses two sources to generate links from:
- The HOST header information when we're in a request (i.e. you're browsing pages and links are being generated from the request)
- The Setting.host_name value (Administration > System settings) for links that are generated when no request exists - for example, an outgoing mail that is rendered in the backend.
you have likely either:
- Do not properly pass the host name into the proxy/reverse proxy. For Apache, there's a directive called
ProxyPreserveHost Onthat 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 generation- set an invalid host name at
Administration > System settings, which if you use a packaged installation is set to the value ofopenproject config:get SERVER_HOSTNAMEand 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
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 to projekte.mydomain.foo
Running packaged-installation on Ubuntu 18.04 LTS.
Any idea?
Best
Tobias
Oliver Günther wrote:
Hi Juliano,
OpenProject uses two sources to generate links from:
- The HOST header information when we're in a request (i.e. you're browsing pages and links are being generated from the request)
- The Setting.host_name value (Administration > System settings) for links that are generated when no request exists - for example, an outgoing mail that is rendered in the backend.
you have likely either:
- Do not properly pass the host name into the proxy/reverse proxy. For Apache, there's a directive called
ProxyPreserveHost Onthat 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 generation- set an invalid host name at
Administration > System settings, which if you use a packaged installation is set to the value ofopenproject config:get SERVER_HOSTNAMEand 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