Welcome! Log In Create A New Profile

Advanced

Re: Expires directive and try_files rewrites not working

Maxim Dounin
December 02, 2009 01:54PM
Hello!

On Wed, Dec 02, 2009 at 01:22:01PM -0500, Per Hansson wrote:

> 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?

http://wiki.nginx.org/NginxHttpCoreModule#location

In short: only *one* location matches particular query, and only
*one* configuration will be used. Don't expect any merging magic.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 233
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