Skip to content

Instantly share code, notes, and snippets.

@rberger
Forked from charlesjohnson/apache2.conf.erb
Created March 7, 2014 10:06
Show Gist options
  • Save rberger/9408862 to your computer and use it in GitHub Desktop.
Save rberger/9408862 to your computer and use it in GitHub Desktop.
# Managed by Chef for <%= node['hostname'] %>
<VirtualHost *:80>
ServerAdmin <%= node['apache']['contact'] %>
DocumentRoot /srv/apache/myface
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /srv/apache/myface>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog <%= node['apache']['log_dir'] %>/error.log
LogLevel warn
CustomLog <%= node['apache']['log_dir'] %>/access.log combined
ServerSignature Off
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment