0

Is there a maximum number of locations that nginx can handle in nginx.conf?

Toby Hede
  • 309
  • 5
  • 11
  • 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 Answers1

2

It is only limited by your memory. Having very much locations will impact on performance of each request but not greatly.

Andrei Mikhaltsov
  • 2,987
  • 1
  • 22
  • 31