confused with hiding a directory

raubvogel nginx-forum at nginx.us
Tue Aug 3 23:13:02 MSD 2010


Thanks for the suggestion. Unfortunately the directory conf is still
being shown. Once I click on it, I get the 404 error. Here is the conf
file for the site, just in case I have done something somewhere else
that is affecting this (nginx.conf has not being touched):
[code]
server {
  listen 80 default;
  # Default site
  server_name _;
  autoindex on;

  access_log /var/log/nginx/packages-error.log;
  error_log /var/log/nginx/packages-error.log;

  location / {
    root /export/www/site1;
  }

  location /conf {
    internal;
  }

  location ~ /(.*)/db {
    deny all;
  }
}[/code]

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,116233,116241#msg-116241




More information about the nginx mailing list