Skip to content

Instantly share code, notes, and snippets.

@jtarleton
Created December 14, 2012 23:47
Show Gist options
  • Save jtarleton/4289657 to your computer and use it in GitHub Desktop.
Save jtarleton/4289657 to your computer and use it in GitHub Desktop.
Example virtual host for Apache2
<VirtualHost *:80>
ServerAdmin foo@localhost
ServerName foo.domain.net
DocumentRoot /home/foouser/project/web
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/foouser/project/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Alias /sf /home/foouser/bar/lib/vendor/symfony/data/web/sf
ErrorLog /var/log/apache2/foo-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/foo-access.log combined
ServerSignature On
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment