Skip to content

Instantly share code, notes, and snippets.

@rodrigodealer
Created October 17, 2011 11:26
Show Gist options
  • Save rodrigodealer/1292430 to your computer and use it in GitHub Desktop.
Save rodrigodealer/1292430 to your computer and use it in GitHub Desktop.

Revisions

  1. rodrigodealer created this gist Oct 17, 2011.
    29 changes: 29 additions & 0 deletions httpd.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    <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>