Welcome! Log In Create A New Profile

Advanced

dokuwiki not in root problem of regexp

June 29, 2012 09:32PM
Hi forumers,

I'm trying to set a configuration up for DW but I'm going mad with the regexps:(

My starter is the conf file found on the nginx wiki, but modified not to point DW to the server root:
server {
server_name wiki.domain.tld;
### root /var/www/dokuwiki;
root /var/www;

location /dokuwiki {
index doku.php;
try_files $uri $uri/ @dokuwiki;
}
bla bla bla

And here I'm stuck.
Original dirs exclusion:
location ~ /(data|conf|bin|inc)/ {
deny all;
}

Of course, this won't work w/ my changes, and I'm totally unable to find the right syntax to exclude these dirs from this conf (made many unsuccessful tests:(

In my mind it _should_ be: "location ~/dokuwiki/(data|conf|bin|inc)/" but it don't work, sniff.
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: 310
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