Rewrite issue
Igor Sysoev
is at rambler-co.ru
Tue Sep 30 20:46:21 MSD 2008
On Tue, Sep 30, 2008 at 04:36:12PM +0200, P??l-Kristian Hamre wrote:
> Igor Sysoev skrev:
> > Also this location
> >
> > location / {
> > rewrite ^/Blocked$ /code/Scripts/Blocked.php last;
> > }
> >
> > is better to divide to
> >
> > location / {
> > }
> >
> > location = /Blocked {
> > rewrite ^ /code/Scripts/Blocked.php last;
> > }
>
> What is the difference between these two blocks in practice? I can
> imagine less regular expressions to handle, and this will cause and
> increase in the performance on sites with a large amount of traffic. Is
> this true, or is just best practices for nginx?
Yes, this is perfomance issue and therefore this is best practice.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list