location regex issue
Igor Sysoev
igor at sysoev.ru
Fri Apr 15 15:23:54 MSD 2011
On Fri, Apr 15, 2011 at 02:12:26PM +0300, Boyko Yordanov wrote:
> Guys,
>
> Further issue:
>
> I tried to use around 2000 pages in the same location block like this:
>
> location ~* (^/browse|^/page2|^/page3|... etc ^/page2000) {
>
> And of-course I'm getting:
>
> nginx: [emerg] too long parameter
>
> Can I catch all these pages with a single location directive or I should separate them in different locations? Also, what is the allowed size for location parameter?
You should not use regex location if you can avoid them.
location = /browse {
...
}
location = /page2 {
...
}
etc.
--
Igor Sysoev
More information about the nginx
mailing list