Content
Invalid host_name configuration
Added by Diego Levrero about 1 month 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:
-
The contents of /etc/openproject/installer.dat
-
The contents of /etc/httpd/conf.d/openproject.conf
-
The value of
openproject config:get SERVER_HOSTNAME
andopenproject config:get OPENPROJECT_HOST__NAME
-
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 v1server/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/publicProxyRequests off
ProxyPreserveHost OnInclude /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!