Welcome! Log In Create A New Profile

Advanced

Re: How to start off this rule?

September 25, 2009 10:34PM
Hi. Igor.
Thank you.

> This is was not obvious from your first message:
Sorry. I expresses my thoughts unarticulately.


> location = /download/config {
> deny all;
> }
if include subdirectory, May I modify it to the following example?
location ~ /download/*/config {
deny all;
}

Best Regards.




Igor Sysoev Wrote:
-------------------------------------------------------
> On Fri, Sep 25, 2009 at 09:36:16AM -0400,
> filebackup wrote:
>
> > Hi, Igor.
> >
> > location /download/ {
> > deny all;
> > }
> > This rule would deny access to all files, but I
> only want to deny access to 'config' file. Can
> modify this rule only deny 'config' file?
> >
> >
> > Order deny,allow
> > Deny from all
>
> This is was not obvious from your first message:
>
> location = /download/config {
> deny all;
> }
>
> >
> > Thanks.
> >
> >
> >
> >
> > Igor Sysoev Wrote:
> >
> --------------------------------------------------
> -----
> > > On Fri, Sep 25, 2009 at 10:03:15AM +0800, Ray
> > > wrote:
> > >
> > > > You use the deny directive
> > > >
> http://wiki.nginx.org/NginxHttpAccessModule#deny
> > > >
> > > > location / {
> > >
> > > - location / {
> > > + location /download/ {
> > >
> > > > deny all;
> > > > }
> > > >
> > > >
> > > > Ray
> > > >
> > > > On Fri, Sep 25, 2009 at 9:48 AM, filebackup
> > > wrote:
> > > >
> > > > > Hi.
> > > > > I want to create an nginx rule, but I
> don't
> > > known how to start off. Please
> > > > > help me. Thanks.
> > > > >
> > > > > the .htaccess file is in the /download/
> > > directory, and the rule is
> > > > >
> > > > > Order deny,allow
> > > > > Deny from all
> > > > >
> > > > >
> > > > > How to convert it to nginx rule?
> > > > >
> > > > > Regards.
> > > > >
> > > > > Posted at Nginx Forum:
> > > > >
> > >
> http://forum.nginx.org/read.php?2,9118,9118#msg-91
> > > 18
> > > > >
> > > > >
> > > > >
> > >
> > > --
> > > Igor Sysoev
> > > http://sysoev.ru/en/
> >
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,9118,9213#msg-92
> 13
> >
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
Subject Author Posted

How to start off this rule?

filebackup September 24, 2009 09:48PM

Re: How to start off this rule?

Ray September 24, 2009 10:12PM

Re: How to start off this rule?

Igor Sysoev September 25, 2009 02:16AM

Re: How to start off this rule?

filebackup September 25, 2009 09:36AM

Re: How to start off this rule?

Igor Sysoev September 25, 2009 10:28AM

Re: How to start off this rule?

filebackup September 25, 2009 10:34PM

Re: How to start off this rule?

Dennis Brakhane September 26, 2009 08:48AM

Re: How to start off this rule?

filebackup September 26, 2009 10:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 209
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