Public bug reported:

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/site-enabled/default

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://forum.nginx.org/read.php?2,214663]

PPS: I think debian packages also has this bug.

** Affects: nginx (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: configuration

** Summary changed:

- Error in configuration cause error 404 in directory starting with 'doc*'
+ By default configuration cause error 404 in directory starting with 'doc*'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/840358

Title:
  By default configuration cause error 404 in directory starting with
  'doc*'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/840358/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to