Skip to content

Instantly share code, notes, and snippets.

@xwu
Created June 19, 2009 17:37
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 xwu/132749 to your computer and use it in GitHub Desktop.
Save xwu/132749 to your computer and use it in GitHub Desktop.
Custom DocumentRoot Apache configuration for Trait-o-matic
<Directory /var/www/>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
# Use only MTime and Size (not INode) in Etags calculation
FileETag MTime Size
# GZIP text files (requires mod_deflate)
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css application/x-javascript
# Cache control (requires mod_expires)
ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ErrorDocument 400 /errors/400.html
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 501 /errors/501.html
ErrorDocument 502 /errors/502.html
ErrorDocument 503 /errors/503.html
</Directory>
<Directory /var/www/query/>
<IfModule mod_php5.c>
php_value upload_max_filesize 1024M
</IfModule>
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment