Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

closed as not a real question by Michael Hampton, mdpc, faker, Scott Pack, Ward Dec 26 '12 at 5:32

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Probably, but it's extremely unlikely the answer would be useful to you, since a server generally has fewer than five locations anyway. What are you really trying to accomplish? –  Michael Hampton Dec 25 '12 at 0:32
    
Looking at OpenResty, which uses locations as "routes" –  Toby Hede Dec 25 '12 at 1: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 1: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 Answer 1

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.