-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
Root should not be inside location block #142
Comments
👍 |
👍 |
solution #576 |
👍 but I think #576 is a workaround. the module should do it correctly by default, to avoid the wrong behavior, if the DevOP is careless / inexperienced |
@schkovich I totally agree. |
@schkovich I think in that comment I said...
I do think this falls under a sane default. Throw up a PR, I'll review/merge. I was hoping the original author of that PR would rebase/resubmit, but it didn't happen. |
I have included a way to suppress logs in #888 |
Bad practice is currently enforced:
fail('Cannot create a location reference without a www_root [...])
.Instead option to add www_root should be removed and error raised if user tries to add root inside location block.
Nginx Pitfalls: Root inside location block
BAD:
GOOD:
Root moved to vhost_header
The text was updated successfully, but these errors were encountered: