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

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Invalid host_name configuration

Invalid host_name configuration

Added by Diego Levrero 7 months ago

Hi all,

i'm having same the issue reported in BUG  #56589 
I've tryied all solutions proposed in bug answer, but none of them solved: i still get the error message "Invalid host_name configuration"
My operproject is 14.6.1 on Rocky Linux 8, and use RPM package version. Proxy is done with Apache.

I've also tryed to add a "ServerAlias" clause in Virtualhost config section, but no change.

Follow my config: i hope someone can help me to understand where i'm wrong:

  1. The contents of /etc/openproject/installer.dat

  2. The contents of /etc/httpd/conf.d/openproject.conf

  3. The value of openproject config:get SERVER_HOSTNAME and openproject config:get OPENPROJECT_HOST__NAME

  4. The contents of /etc/openproject/addons/apache2/includes/vhost/ssl.conf

1. /etc/openproject/installer.dat

postgres/db_host 127.0.0.1
postgres/db_port 45432
postgres/db_name openproject
postgres/db_username openproject
postgres/db_password xxxxxxxxxxxxxxxxxx
openproject/edition default
postgres/autoinstall install
server/autoinstall install
server/hostname openproject.comune.benevento.it
server/server_path_prefix 
server/ssl yes
server/ssl_cert /etc/ssl/star.comune.benevento.it-cert.pem
server/ssl_key /etc/ssl/star.comune.benevento.it-key.pem
server/ssl_ca /etc/ssl/comune.benevento.it-chain.pem
repositories/api-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
repositories/svn-install skip
repositories/git-install skip
smtp/autoinstall smtp
smtp/authentication login
smtp/host smtps.myprovider.it
smtp/port 465
smtp/username myemail@myprovider.com
smtp/password xxxxxxxxxxxx
smtp/domain comune.benevento.it
smtp/admin_email myemail@myprovider.com
memcached/autoinstall install
postgres/addon_version v1

server/variant apache2
repositories/git-http-backend /usr/libexec/git-core/git-http-backend/


2. /etc/httpd/conf.d/openproject.conf

Include /etc/openproject/addons/apache2/includes/server/*.conf
Include /etc/openproject/addons/apache2/includes/vhost/*.conf
IncludeOptional /etc/openproject/addons/apache2/custom/server/*.conf

<VirtualHost *:80>
 ServerName openproject.comune.benevento.it
 RewriteEngine On
 RewriteRule ^/?(.*) https://%{SERVER_NAME}:443/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
 ServerName openproject.comune.benevento.it
 DocumentRoot /opt/openproject/public

ProxyRequests off
 ProxyPreserveHost On

Include /etc/openproject/addons/apache2/includes/vhost/*.conf
 IncludeOptional /etc/openproject/addons/apache2/custom/vhost/*.conf
 
 # Can't use Location block since it would overshadow all the other proxypass directives on CentOS
 ProxyPass / http://127.0.0.1:6000/ retry=0
 ProxyPassReverse / http://127.0.0.1:6000/
</VirtualHost>

[root@openproject ~]# openproject config:get SERVER_HOSTNAME
openproject.comune.benevento.it

[root@openproject ~]# openproject config:get OPENPROJECT_HOST__NAME
openproject.comune.benevento.it

4. /etc/openproject/addons/apache2/includes/vhost/ssl.conf

SSLEngine On
SSLCertificateFile /etc/ssl/star.comune.benevento.it-cert.pem
SSLCertificateKeyFile /etc/ssl/star.comune.benevento.it-key.pem
RequestHeader set X_FORWARDED_PROTO 'https'

Thanks in advance!


Loading...