
We recently broke our /etc/hosts content on our servers then restored it to a sane default for each server. This would have removed any special entries servers may have had. It appears that refstack was relying on such special entries to make the named virtualhost entries work. With the new /etc/hosts content our vhosts weren't serving content. Fix this by removing the named vhost entries and instead rely on ServerName to specify where requests go. Change-Id: I8b8242b1b6d9b2bb072ace5b82a65899fe383056
20 lines
783 B
Plaintext
20 lines
783 B
Plaintext
<VirtualHost *:80>
|
|
<% if !!scope.lookupvar('::refstack::apache::http::server_admin') %>
|
|
ServerAdmin <%= scope.lookupvar('::refstack::apache::http::server_admin') %>
|
|
<% end %>
|
|
ServerName <%= scope.lookupvar('::refstack::apache::http::hostname') %>
|
|
|
|
DocumentRoot <%= scope.lookupvar('::refstack::apache::http::install_www_root') %>
|
|
|
|
WSGIDaemonProcess refstack user=<%= scope.lookupvar('::refstack::apache::http::user') %> group=<%= scope.lookupvar('::refstack::apache::http::group') %> threads=5
|
|
WSGIScriptAlias /api /etc/refstack/app.wsgi
|
|
WSGIPassAuthorization On
|
|
LogLevel warn
|
|
ErrorLog ${APACHE_LOG_DIR}/refstack-error.log
|
|
CustomLog ${APACHE_LOG_DIR}/refstack-access.log combined
|
|
|
|
<Directory "/etc/refstack">
|
|
Require all granted
|
|
</Directory>
|
|
</VirtualHost>
|