Welcome! Log In Create A New Profile

Advanced

Re: confused with hiding a directory

All files from this thread

File Name File Size   Posted by Date  
nginx-0.8.42_hidden-location.patch 5.1 KB open | download Matthieu Tourne 08/03/2010 Read message
August 03, 2010 04:10PM
On Tue, Aug 03, 2010 at 03:13:02PM -0400, raubvogel wrote:

> 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

Well, what should nginx return for this location ?
Also, what should nginx return for any non-existant file/directory ?
404 means that there is no such file/dirctory on site.

> 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]


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

confused with hiding a directory

raubvogel August 03, 2010 02:54PM

Re: confused with hiding a directory

Igor Sysoev August 03, 2010 03:04PM

Re: confused with hiding a directory

raubvogel August 03, 2010 03:13PM

Re: confused with hiding a directory

Matthieu Tourne August 03, 2010 03:18PM

Re: confused with hiding a directory

raubvogel August 03, 2010 03:38PM

Re: confused with hiding a directory

Igor Sysoev August 03, 2010 04:08PM

Re: confused with hiding a directory Attachments

Matthieu Tourne August 03, 2010 04:54PM

Re: confused with hiding a directory

Igor Sysoev August 03, 2010 04:10PM

Re: confused with hiding a directory

raubvogel September 12, 2010 06:07PM

Re: confused with hiding a directory

Matthieu Tourne September 13, 2010 07:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready