Welcome! Log In Create A New Profile

Advanced

Re: location filter

Francis Daly
October 03, 2014 05:06AM
On Fri, Oct 03, 2014 at 04:32:06AM -0400, rapamiti wrote:

Hi there,

> i use actually :
> location ~*
> ^.+.(jpg|jpeg|gif|png|bmp|ico|pdf|flv|swf|exe|txt|css|js|xml|woff|eot|ttf|svg)$
> {
> and all is ok
>
> but i want to remove from nginx a dynamic image, ex : logo_125_21.gif who is
> generated by apache/php (with rewrite)
> numbers are randoms.

If I've understood you correctly:

See http://nginx.org/r/location and possibly
http://nginx.org/en/docs/http/request_processing.html#simple_php_site_configuration

and add a separate location that does match your urls -- something like
~logo.*gif$ -- that will apply before your current location.

f
--
Francis Daly francis@daoine.org

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

location filter

rapamiti October 03, 2014 04:32AM

Re: location filter

Francis Daly October 03, 2014 05:06AM

Re: location filter

rapamiti October 03, 2014 06:02AM

Re: location filter

Francis Daly October 03, 2014 04:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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