Welcome! Log In Create A New Profile

Advanced

Re: Expires headers for url rewrite rules

October 21, 2013 06:52AM
Moving the rewrite rules inside the " ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { " block did the trick.

Thanks a lot for the quick reply.

Francis Daly Wrote:
-------------------------------------------------------
> On Mon, Oct 21, 2013 at 05:52:57AM -0400, bogdanb wrote:
>
> Hi there,
>
> > location / {
>
> > location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
>
> > This works fine for everything except for the images that have the
> url
> > rewrite rules (which return 404 Not found). Anyone know what I'm
> doing wrong
> > here?
>
> One request is handled in one location.
>
> Put all of the configuration that you want to apply to a request,
> within
> the one location{} block that handles that request.
>
> f
> --
> Francis Daly francis@daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Expires headers for url rewrite rules

bogdanb October 21, 2013 05:52AM

Re: Expires headers for url rewrite rules

Francis Daly October 21, 2013 06:00AM

Re: Expires headers for url rewrite rules

bogdanb October 21, 2013 06:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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