-
-
Notifications
You must be signed in to change notification settings - Fork 872
Closed
Description
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:
server {
server_name www.domain.com;
location / {
root /var/www/nginx-default/;
[...]
}
}
GOOD:
server {
server_name www.domain.com;
root /var/www/nginx-default/;
location / {
[...]
}
Metadata
Metadata
Assignees
Labels
No labels