Re: Limiting gzip_static to two directories.

2015-01-17 Thread B.R.
According to the location directive documentation, nginx will match one location block only. nginx will first match the longest prefix location to your request. If that longest prefix is the one you provided, then regular expression

Re: Limiting gzip_static to two directories.

2015-01-16 Thread tommygunner
changing location line to: location ^~ /media/po_compressor/ { should allow it to look for all files within this directory and sub-directories, right? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256154,256155#msg-256155 ___ nginx ma

Limiting gzip_static to two directories.

2015-01-16 Thread tommygunner
I have gzip enabled in Nginx as well as gzip_static. I am trying to limit gzip_static to just one or two sections. There are pre-compressed files inside the directory: media/po_compressor/ along with sub directories of this such as: media/po_compressor/4/js media/po_compressor/4/css Here is what