23 lines
770 B
Plaintext
23 lines
770 B
Plaintext
|
|
<VirtualHost *:<%= @ae_vhost_port %> >
|
||
|
|
ServerAdmin <%= @ae_server_admin%>
|
||
|
|
ServerName www.<%= @ae_server_name %>
|
||
|
|
ServerAlias <%= @ae_server_name %>
|
||
|
|
DocumentRoot <%= @ae_doc_root %>
|
||
|
|
|
||
|
|
<% if @ae_use_https == true and @ae_http_https_fw == true -%>
|
||
|
|
Redirect permanent / https://<%= @ae_server_name %>/
|
||
|
|
<% else -%>
|
||
|
|
DirectoryIndex <%= @ae_dir_index %>
|
||
|
|
<Directory <%= @ae_doc_root -%>
|
||
|
|
AllowOverride none
|
||
|
|
Order Allow,Deny
|
||
|
|
Allow from <%= @ae_allow_from %>
|
||
|
|
</Directory>
|
||
|
|
<% end %>
|
||
|
|
ErrorLog /var/log/httpd/<%= @ae_server_name%>_error_log
|
||
|
|
<% if @ae_use_access_log == true %>
|
||
|
|
CustomLog /var/log/httpd/<%= @ae_server_name%>_access_log common
|
||
|
|
<% end %>
|
||
|
|
LogLevel <%= @ae_vhost_loglevel %>
|
||
|
|
</VirtualHost>
|