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
Matthieu Tourne
September 13, 2010 07:44PM
On Sun, Sep 12, 2010 at 3:07 PM, raubvogel <nginx-forum@nginx.us> wrote:
> Sorry for taking so long; I had to put that server into production. So I
> built another (the first one is an ubuntu one), applied your patch to
> nginx-0.8.50 (it did not bark), and compiled it. So, I set the conf dir
> as
>
> [code]
> location /conf {
>            hidden;
>        }
> [/code]
>
> and restarted nginx. Unfortunately I can still see the directory. Did I
> miss anything?
>

Hi,

If you have something like :

http {
location / {
proxy_pass http://backend;
}

location /conf {
hidden;
<other stuffs>
}
}

if you request for /conf externally you should hit
http://<backend>/conf via the proxy_pass. The nginx /conf is
accessible only from a subrequest.
Is it what you're trying to achieve, or do you have a different scenario ?

Matthieu.

--
Matthieu Tourne

_______________________________________________
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: 135
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready