Welcome! Log In Create A New Profile

Advanced

Re: nginx rewrite of certain mime types and request processing order

Francis Daly
November 05, 2012 06:22AM
On Mon, Nov 05, 2012 at 06:00:32AM -0500, technoplague wrote:

Hi there,

> The problem is with processing order and /get location rewrite.
> The request: http://cf.domain.com/get/68175/fingergr.swf returns 404,
> instead by getting processed by /get location rewrite rule. This is because
> swf is defined in (static content) location:
>
> # static content
> location ~* \.(jpg|jpeg|gif|css|png|js|swf|ico|rar|zip)$ {
> expires max;
> access_log off;
> log_not_found off;
> }
>
> How is it possible to have /get location rewrite working together without
> removing swf type from static content location?

http://nginx.org/r/location

Note particularly the various things in between "location" and "uri",
and the example configurations D and E.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx rewrite of certain mime types and request processing order

technoplague November 05, 2012 06:00AM

Re: nginx rewrite of certain mime types and request processing order

Francis Daly November 05, 2012 06:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 236
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