Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created June 4, 2012 05:00
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save adamhjk/2866454 to your computer and use it in GitHub Desktop.
Save adamhjk/2866454 to your computer and use it in GitHub Desktop.
Apache virtualhost file
<% 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>
@NathanZook
Copy link

curl https://gist.github.com/adamhjk/2866454/download | tar -xz --strip-components 1 -C correct_directory_for_file

creates custom.erb in correct_directory_for_file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment