# internal vhost aodh-internal.openstack.svc configuration
ServerName aodh-internal.openstack.svc
## Vhost docroot
DocumentRoot "/var/www/cgi-bin/aodh"
## Directories, there should at least be a declaration for /var/www/cgi-bin/aodh
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
## Logging
ErrorLog /dev/stdout
ServerSignature Off
CustomLog /dev/stdout combined
## Request header rules
## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader
RequestHeader setIfEmpty X-Forwarded-Proto "https"
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"
## WSGI configuration
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess internal display-name=internal group=aodh processes=3 threads=1 user=aodh
WSGIProcessGroup internal
WSGIScriptAlias / "/var/www/cgi-bin/aodh/aodh-api"
WSGIPassAuthorization On
Timeout 60
# public vhost aodh-public.openstack.svc configuration
ServerName aodh-public.openstack.svc
## Vhost docroot
DocumentRoot "/var/www/cgi-bin/aodh"
## Directories, there should at least be a declaration for /var/www/cgi-bin/aodh
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
## Logging
ErrorLog /dev/stdout
ServerSignature Off
CustomLog /dev/stdout combined
## Request header rules
## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader
RequestHeader setIfEmpty X-Forwarded-Proto "https"
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"
## WSGI configuration
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess public display-name=public group=aodh processes=3 threads=1 user=aodh
WSGIProcessGroup public
WSGIScriptAlias / "/var/www/cgi-bin/aodh/aodh-api"
WSGIPassAuthorization On
Timeout 60