Created
October 17, 2011 11:26
-
-
Save rodrigodealer/1292430 to your computer and use it in GitHub Desktop.
Gzip, Expires e Proxypass no Apache2
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
<Location /> | |
# AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css image/gif image/png image/jpg | |
# SetOutputFilter DEFLATE | |
# BrowserMatch ^Mozilla/4 gzip-only-text/html | |
# BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
# BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html | |
# AddOutputFilterByType DEFLATE text/html text/plain text/css image/gif image/png image/jpg 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 | |
ExpiresActive On | |
ExpiresDefault "access plus 300 seconds" | |
ExpiresByType text/html "access plus 1 year" | |
ExpiresByType text/css "access plus 1 year" | |
ExpiresByType text/javascript "access plus 1 week" | |
ExpiresByType image/gif "access plus 2 years" | |
ExpiresByType image/jpg "access plus 2 years" | |
ExpiresByType image/png "access plus 2 years" | |
ExpiresByType application/x-shockwave-flash "access plus 2 years" | |
</Location> | |
# vhost | |
<VirtualHost *:80> | |
ServerName domain.com | |
ProxyPass / http://localhost:9090/ retry=0 | |
ProxyPassReverse / http://localhost:9090/ | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment