Tero Kilkanen Tero Kilkanen Add a comment. Manuth Chek Manuth Chek 2 2 gold badges 5 5 silver badges 16 16 bronze badges. Joseph linked to the "if is evil" article in his question. I suspect he was hoping for a bit more detail, and more depth on using if vs using multiple server blocks. Your answer is slightly light on detail. Actually, the official docs suggest moving if s to the server block when possible to avoid some of the known limitations. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. Linked 2. Related 2. Hot Network Questions. Question feed. Server Fault works best with JavaScript enabled.
Sign in to view. Copy link Quote reply. I got "invalid variable name in If is only "evil" in location context.
Nice, thanks! Thank you! What versions of nginx does this work on? I can't get it working on 1. Why not just use map instead?
Thanks, worked great. Seems, you are not familiar with map, or do not like it. More short and elegant: ":" is used just like delimiter, you can use any other symbol not used in checked variables. Edit: Worked like a charm!
Thanks for the tutorial! You are a god :D. Regards, Naveen. You truly are the king of kings. Awesome man, thanks. How to write this condition? DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. Posted December 17, Add a comment. Subscribe Subscribed. Submit an Answer Submit an answer. Reply Report. ZenCocoon November 23, AlexeyPortnov April 11, Looking for something else? Ask a new question Search for more help.
Before you can do that To complete this action, sign in to your Community account or create a new one.
0コメント