Skip to content

Instantly share code, notes, and snippets.

@johnfitzpatrick
Last active August 29, 2015 14:12
Show Gist options
  • Save johnfitzpatrick/803ef2612f2bd7e1db1e to your computer and use it in GitHub Desktop.
Save johnfitzpatrick/803ef2612f2bd7e1db1e to your computer and use it in GitHub Desktop.
vhost.conf.erb
<% if @port != 80 -%>
Listen <%= @port %>
<% end -%>
<VirtualHost *:<%= @port %>>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/web01
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/web01>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment