Welcome! Log In Create A New Profile

Advanced

Re: map v/s rewrite performance

April 06, 2014 04:04AM
On Apr 4, 2014, at 16:05 , rahul286 wrote:

> @Igor
>
> Few Updates:
>
>> location = old-url-1 { return 301 new-url-1; }
>
> is really nice. We can specify 301/302 using it.
>
> But I am reading -
> http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache_valid
> and now I am thining weather to populate config file with 1000's of lines
> like below (using automated script, no human efforts involved)
>
>> location = old-url-1 { return 301 new-url-1; }
>
> OR simply declare
>
>> fastcgi_cache_valid 301 302 max;
>
> That is: Putting load in config file v/s fastcgi-cache?

Exact locations are faster.


--
Igor Sysoev

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

map v/s rewrite performance

rahul286 March 25, 2014 04:12AM

Re: map v/s rewrite performance

Igor Sysoev March 25, 2014 04:18AM

Re: map v/s rewrite performance

rahul286 March 25, 2014 04:43AM

Re: map v/s rewrite performance

rahul286 April 04, 2014 08:05AM

Re: map v/s rewrite performance

Igor Sysoev April 06, 2014 04:04AM

Re: map v/s rewrite performance

rahul286 April 06, 2014 09:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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