25 lines
683 B
Plaintext
25 lines
683 B
Plaintext
<VirtualHost *:80>
|
|
ServerName <%= scope.lookupvar("hound::vhost_name") %>
|
|
<% if @serveraliases.is_a? Array -%>
|
|
<% @serveraliases.each do |name| %><%= " ServerAlias #{name}\n" %><% end %>
|
|
<% elsif @serveraliases -%>
|
|
<%= " ServerAlias #{@serveraliases}" %>
|
|
<% end %>
|
|
ServerAdmin <%= @serveradmin %>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("hound::vhost_name") %>-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("hound::vhost_name") %>-access.log combined
|
|
|
|
<IfModule mod_proxy.c>
|
|
RewriteEngine on
|
|
|
|
RewriteRule ^/(.*)$ http://localhost:6080/$1 [P]
|
|
ProxyPassReverse / http://localhost:6080/
|
|
</IfModule>
|
|
|
|
|
|
</VirtualHost>
|