Welcome! Log In Create A New Profile

Advanced

Re: dokuwiki not in root problem of regexp

Francis Daly
June 30, 2012 08:14AM
On Fri, Jun 29, 2012 at 09:32:21PM -0400, Jiff wrote:

Hi there,

I don't know dokuwiki, so this is all untested, but...

> Original dirs exclusion:
> location ~ /(data|conf|bin|inc)/ {
> deny all;
> }
>
> Of course, this won't work w/ my changes,

....why "of course"?

The original example wanted to block access to /data/ and
/something/data/; you now want to block access to /dokuwiki/data/
and /dokuwiki/something/data/.

This location block will match all of those (depending on what else is
in your config file).

> In my mind it _should_ be: "location ~/dokuwiki/(data|conf|bin|inc)/"

That looks to me like it should also work...

> but it don't work, sniff.

....so there is something else going on.

What one url did you access to test this?

What response did you see?

What response did you expect to see?

If you provide your config file, or at least the full list of top-level
location definitions, someone may be able to point out why the second
and third answers differ.

http://nginx.org/r/location

Does the example config in
http://bugs.dokuwiki.org/index.php?do=details&task_id=2388 provide any
useful hints?

Good luck with it,

f
--
Francis Daly francis@daoine.org

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

dokuwiki not in root problem of regexp

Jiff June 29, 2012 09:32PM

Re: dokuwiki not in root problem of regexp

Francis Daly June 30, 2012 08:14AM

Re: dokuwiki not in root problem of regexp

Jiff June 30, 2012 10:25AM

Re: dokuwiki not in root problem of regexp

Francis Daly June 30, 2012 11:44AM

Re: dokuwiki not in root problem of regexp

Jiff July 01, 2012 12:01AM

Re: dokuwiki not in root problem of regexp

Francis Daly July 01, 2012 06:12AM

Re: dokuwiki not in root problem of regexp

Jiff July 01, 2012 11:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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