Is there a maximum number of locations that nginx can handle in nginx.conf?
Asked
Active
Viewed 1,244 times
0
-
Probably, but it's extremely unlikely the answer would be useful to you, since a `server` generally has fewer than five `location`s anyway. What are you really trying to accomplish? – Michael Hampton Dec 25 '12 at 00:32
-
Looking at OpenResty, which uses locations as "routes" – Toby Hede Dec 25 '12 at 01:42
-
You should talk to the app developers, then, or read their web site (if you can!) or their source code. This doesn't seem to be an appropriate question for Server Fault. – Michael Hampton Dec 25 '12 at 01:59
-
@michael, the question isn't specific to the app in question, but is ultimately a general question about nginx configuration limits. – Toby Hede Dec 25 '12 at 21:46
1 Answers
2
It is only limited by your memory. Having very much locations will impact on performance of each request but not greatly.
![](../../users/profiles/96428.webp)
Andrei Mikhaltsov
- 2,987
- 1
- 22
- 31