By default configuration cause error 404 in directory starting with 'doc'
Bug #840358 reported by
Xan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In nginx package 0.8.54-4 (and I think in next versions too), by default apt put the lines:
location /doc {
root /usr/share;
autoindex on;
allow 127.0.0.1;
deny all;
}
in /etc/nginx/
This is wrong: we have to change "location /doc" for "location /doc/". Else, if we add a directory starting with "doc" (for example "doci") in /var/www, we receive error 404 from nginx.
It's clear a wrong configuration line.
Regards,
Xan.
PS: References [http://
PPS: I think debian packages also has this bug.
summary: |
- Error in configuration cause error 404 in directory starting with 'doc*' + By default configuration cause error 404 in directory starting with + 'doc*' |
summary: |
By default configuration cause error 404 in directory starting with - 'doc*' + 'doc' |
To post a comment you must log in.
Although, I do not agree that this is a bug, I will change the default configuration file so people that don't bother to read or understand any of it are less confused. The change has now been made upstream.