Skip to content

Instantly share code, notes, and snippets.

@aquarion
Created August 27, 2010 14:03
Show Gist options
  • Save aquarion/553410 to your computer and use it in GitHub Desktop.
Save aquarion/553410 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ErrorDocument 404 /.EverythingIsCatchingOnEverythingIsCatchingOnFire/404/index.php
ErrorDocument 410 /.EverythingIsCatchingOnEverythingIsCatchingOnFire/410/index.php
Alias /.EverythingIsCatchingOnEverythingIsCatchingOnFire /var/www/hosts/errors
DocumentRoot /var/www/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
ServerName *
# get the server name from the Host: header
UseCanonicalName Off
# this log format can be split per-virtual-host based on the first field
# LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{User-agent}i\"" vcommon
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 9
CustomLog /var/log/apache2/vhost_access.log vcommon
# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /var/www/hosts/%0/htdocs
VirtualScriptAlias /var/www/hosts/%0/cgi-bin
UserDir disabled
</VirtualHost>
<Directory /var/www/hosts/www.deadbadgerdesigns.co.uk/htdocs>
Options +Includes
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment