Fix OpenProject “Invalid host_name”
Starting with OpenProject 14.3, hostname checking has become more strict (see config/environments/production.rb:182 ff.). When running OpenProject behind an Apache reverse proxy, requests may arrive with different source hostnames. By default, the OPENPROJECT_HOST__NAME environment variable is only set to the public hostname served by Apache. To resolve this issue, add:
| |
to your Apache VirtualHost configuration and reload the service:
| |
Alternatively, you can work around this issue by adding:
| |
to /etc/openproject/conf.d/other and then run:
| |
to apply the changes. After this, restart OpenProject.