Welcome! Log In Create A New Profile

Advanced

Re: location vs. rewite

April 04, 2013 04:16AM
Anton Yuzhaninov Wrote:
-------------------------------------------------------
> > rewrite ^/favicon.ico /var/www/media/images/favicon.X.ico last;
>
> This is wrong - you can rewrite to other location, not to path on file
> system.
> Anyway rewrite does not need here, use location.


Sorry, my bad! In the second case, I meant rewrite ^/favicon.ico /media/images/favicon.X.ico last;

but anyway, it seems that location works better in general.
SubjectAuthorPosted

location vs. rewite

etraderApril 01, 2013 08:51AM

Re: location vs. rewite

Anton YuzhaninovApril 01, 2013 08:58AM

Re: location vs. rewite

etraderApril 04, 2013 04:16AM

Re: location vs. rewite

locojohnMay 05, 2013 03:03PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready