templates/default/virtualhost.conf.erb
<VirtualHost *:80>
ServerName <%= @server_name %>
<% if @server_alias %>
ServerAlias <%= @server_alias %>
<% end %>
DocumentRoot <%= @document_root %>
PassengerRuby <%= @ruby %>
PassengerFriendlyErrorPages <%= @friendly_error_pages %>
ErrorLog /var/log/apache2/<%= @application %>_error.log
CustomLog /var/log/apache2/<%= @application %>_access.log combined
# Relax Apache security settings
<Directory <%= @document_root %>>
Allow from all
Options -MultiViews
# Uncomment this if you're on Apache > 2.4:
Require all granted
</Directory>
</VirtualHost>