Skip to content

Instantly share code, notes, and snippets.

@botchagalupe
Forked from adamhjk/custom.erb
Created July 18, 2013 19:19
Show Gist options
  • Save botchagalupe/6032173 to your computer and use it in GitHub Desktop.
Save botchagalupe/6032173 to your computer and use it in GitHub Desktop.
<% if @port != 80 -%>
Listen <%= @port %>
<% end -%>
<VirtualHost *:<%= @port %>>
ServerAdmin webmaster@localhost
DocumentRoot <%= @document_root %>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory <%= @document_root %>>
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