Home United States USA — software Request Processing Phases in Nginx. Is if Evil?

Request Processing Phases in Nginx. Is if Evil?

105
0
SHARE

See the problems of using “if” in location context when working with Nginx, what causes those problems, and how to avoid them.
Join the DZone community and get the full member experience. The worst evil in Nginx is if when used in location context. Much has been written about this, including posts on nginx.com. Let’s take a quote: The only 100% safe things which may be done inside if in a location context are: – return…; – rewrite… last; It seems that nothing terrible will happen if you use a construction like However, with a certain “skill”, you can even break something that is 100% safe.

Continue reading...