Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Link redirection - Strange behavior

Link redirection - Strange behavior

Added by Juliano Casagrande about 6 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)

RE: Link redirection - Strange behavior - Added by Juliano Casagrande about 6 years ago

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"?

RE: Link redirection - Strange behavior - Added by Juliano Casagrande almost 6 years ago

Anyone?

RE: Link redirection - Strange behavior - Added by Oliver Günther almost 6 years ago

Hi Juliano,

OpenProject uses two sources to generate links from:

  1. The HOST header information when we're in a request (i.e. you're browsing pages and links are being generated from the request)
  2. 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:

  1. Do not properly pass the host name into the proxy/reverse proxy. For Apache, there's a directive called ProxyPreserveHost On that should pass the host correctly. In a packaged installation, please also check the output of openproject config | grep SERVER_ to get all server related configuration options such as the hostname which is used for some link generation
  2. set an invalid host name at Administration > System settings , which if you use a packaged installation is set to the value of openproject 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

RE: Link redirection - Strange behavior - Added by Juliano Casagrande almost 6 years ago

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:

  1. The HOST header information when we're in a request (i.e. you're browsing pages and links are being generated from the request)
  2. 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:

  1. Do not properly pass the host name into the proxy/reverse proxy. For Apache, there's a directive called ProxyPreserveHost On that should pass the host correctly. In a packaged installation, please also check the output of openproject config | grep SERVER_ to get all server related configuration options such as the hostname which is used for some link generation
  2. set an invalid host name at Administration > System settings , which if you use a packaged installation is set to the value of openproject 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

RE: Link redirection - Strange behavior - Added by Tobias Schleinkofer over 4 years ago

I'm currently stuck with the same problem. Although I do not (yet) have the solution, I guess these are similar issues:

  • https://community.openproject.com/topics/12419
  • https://community.openproject.com/topics/11798

RE: Link redirection - Strange behavior - Added by Tobias Schleinkofer over 4 years ago

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:

  1. The HOST header information when we're in a request (i.e. you're browsing pages and links are being generated from the request)
  2. 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:

  1. Do not properly pass the host name into the proxy/reverse proxy. For Apache, there's a directive called ProxyPreserveHost On that should pass the host correctly. In a packaged installation, please also check the output of openproject config | grep SERVER_ to get all server related configuration options such as the hostname which is used for some link generation
  2. set an invalid host name at Administration > System settings , which if you use a packaged installation is set to the value of openproject 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

  • (1 - 6/6)
Loading...