-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to get rid of the if? #276
Comments
The only sections that seem to have if statements are in low traffic admin locations and in the hot linking protection that is not enabled by default. These should not be in the flow for other requests. Are there others that I missed? |
|
Those Ifs are not considered evil as they are directly in the server block, only evaluate a mapped variable set in the http block, and only returns an error code or stops processing altogether (444). |
More specifically, the first line of the linked resource states: "Directive if has problems when used in None of the if directives Perusio has setup are within a location block. |
https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
Nginx and 'if' is evil. I wonder if there is any method to get rid of all the if statements?
The text was updated successfully, but these errors were encountered: