Skip to content

Instantly share code, notes, and snippets.

@brucecrevensten
Created July 25, 2012 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brucecrevensten/3177782 to your computer and use it in GitHub Desktop.
Save brucecrevensten/3177782 to your computer and use it in GitHub Desktop.
snap apache conf
snap:
<VirtualHost *:80>
Redirect permanent / http://www.snap.uaf.edu
ServerName snap.uaf.edu
</VirtualHost>
www.snap:
<VirtualHost *:80>
Redirect /home http://www.snap.uaf.edu
ServerAdmin webmaster@dev.www.snap.uaf.edu
DocumentRoot /var/www/snap/
ServerName www.snap.uaf.edu
#### ServerAlias snap.uaf.edu
ErrorLog /var/log/httpd/www.snap.uaf.edu-error_log
TransferLog /var/log/httpd/www.snap.uaf.edu-access_log
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
ServerSignature Off
Options FollowSymLinks
ErrorDocument 404 /error_404.php
ExpiresDefault now
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment