Created
June 19, 2009 17:37
-
-
Save xwu/132749 to your computer and use it in GitHub Desktop.
Custom DocumentRoot Apache configuration for Trait-o-matic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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