Created
April 17, 2012 10:58
-
-
Save jordanbrock/2405294 to your computer and use it in GitHub Desktop.
OpenPhoto apache config file
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
<VirtualHost *:80> | |
DocumentRoot /var/www/openphoto/src/html | |
<Directory "/var/www/openphoto/src/html"> | |
Order deny,allow | |
Allow from all | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)\?*$ index.php?__route__=/$1 [L,QSA] | |
# 403 Forbidden for ini files | |
RewriteRule \.ini$ - [F,NC] | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/x-javascript | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
</Directory> | |
# 404 Not Found for ini files | |
#AliasMatch \.ini$ /404 | |
ExpiresActive On | |
ExpiresByType text/javascript "A31536000" | |
ExpiresByType application/x-javascript "A31536000" | |
ExpiresByType text/css "A31536000" | |
ExpiresByType image/x-icon "A31536000" | |
ExpiresByType image/gif "A604800" | |
ExpiresByType image/jpg "A604800" | |
ExpiresByType image/jpeg "A604800" | |
ExpiresByType image/png "A604800" | |
Header set Cache-Control "must-revalidate" | |
FileETag MTime Size | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment