ServerTokens Prod
ServerSignature Off
TraceEnable Off
PidFile run/httpd.pid
ServerRoot "/etc/httpd"
ServerName "localhost.localdomain"
User apache
Group apache
Listen 5050
TypesConfig /etc/mime.types
Include conf.modules.d/*.conf
Include conf.d/*.conf
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
ErrorLog /dev/stdout
ServerSignature Off
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
CustomLog /dev/stdout combined env=!forwarded
CustomLog /dev/stdout proxy env=forwarded
# internal vhost ironic-inspector-internal.openstack.svc configuration
ServerName ironic-inspector-internal.openstack.svc
## Request header rules
## as per http://httpd.apache.org/docs/2.4/mod/mod_headers.html#requestheader
RequestHeader setIfEmpty X-Forwarded-Proto "https"
## Proxy rules
ProxyRequests Off
ProxyPreserveHost Off
ProxyPass / http://localhost:5051/ retry=10
ProxyPassReverse / http://localhost:5051/
SetEnvIf X-Forwarded-Proto https HTTPS=1
## SSL directives
SSLEngine on
SSLCertificateFile "/etc/pki/tls/certs/internal.crt"
SSLCertificateKeyFile "/etc/pki/tls/private/internal.key"
TimeOut 60
# public vhost ironic-inspector-public.openstack.svc configuration
ServerName ironic-inspector-public.openstack.svc
## Request header rules
## as per http://httpd.apache.org/docs/2.4/mod/mod_headers.html#requestheader
RequestHeader setIfEmpty X-Forwarded-Proto "https"
## Proxy rules
ProxyRequests Off
ProxyPreserveHost Off
ProxyPass / http://localhost:5051/ retry=10
ProxyPassReverse / http://localhost:5051/
SetEnvIf X-Forwarded-Proto https HTTPS=1
## SSL directives
SSLEngine on
SSLCertificateFile "/etc/pki/tls/certs/public.crt"
SSLCertificateKeyFile "/etc/pki/tls/private/public.key"
TimeOut 60