Public bug reported: nginx is not configured with a "--prefix" compile time option, so it uses the default:
http://wiki.nginx.org/InstallOptions --prefix=path - defines a directory that will keep server files. This same directory will also be used for all relative paths set by configure (except for paths to libraries sources) and in the nginx.conf configuration file. It is set to the /usr/local/nginx directory by default. This means that error pages are served out of "/usr/local/nginx/html/50x.html" The error pages, however, are installed in : "/usr/share/nginx/www/50x.html" Because of this, 50x errors turn into a 404 error to correct this: 1. --prefix should be set to /usr/share/nginx 2. the html folder should be renamed to the original www folder ( as it is in nginx ). looking at the changelog, someone changed this in an earlier release ** Affects: nginx (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1031515 Title: 404 errors because nginx is configured with wrong 'prefix' , and files are misnamed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1031515/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
