Welcome! Log In Create A New Profile

Advanced

Expires directive and try_files rewrites not working

December 02, 2009 01:22PM
Hi, I am trying to use the try_files directive for rewrites together with the Expires directive but when I do file extensions which are included by the expires directive are ignored by my try_files directive, it seems like they are served directly...

Here is an example config; http://pastebin.com/m4c4819a0
Note that files named .js are included in the expires directive and that URL's that have "phpAdsNew" in them should get rewritten to "openxads", example URL; http://www.techspot.com/phpAdsNew/adx.js (it returns 404 with the pastebinned config)

Is this by design or am I just doing it wrong?
I am running nginx stable v0.7.63 on RHEL v5.4 together with php-fpm all from the Russian repository centos.alt.ru
Subject Author Posted

Expires directive and try_files rewrites not working

Per Hansson December 02, 2009 01:22PM

Re: Expires directive and try_files rewrites not working

Maxim Dounin December 02, 2009 01:54PM

Re: Expires directive and try_files rewrites not working

Per Hansson December 02, 2009 02:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready