Yes that's what I intend I noticed directory index grammar just works out of location grammar and I cant setup more than one time
2016-07-28 18:00 GMT-03:00 Alexander Hall <alexan...@beard.se>: > > > On July 28, 2016 10:33:04 PM GMT+02:00, R0me0 *** <knight....@gmail.com> > wrote: > >Howdy ! > > > >I'm running OpenBSD 5.9 stable branch > > > >I can't setup two different locations with different index files > > > >Sample: > > > > > >server "example.com" > > listen on egress port 80 > ># Root path and directory index is already index.php > >root "/htdocs/example.com" > > > >location "/app/*.php" { > > I doubt location "/app/*.php" will match the /app directory itself. > > /Alexander > > ># setting new index for /app directory > >directory index "index.php" > >fastcgi socket "/run/php-fpm.sock" > >} > > > >Even configuring diferent locations / and /app and put index.html and > >index.php respectively I can't to have the expected behavior. > > > >Just able to set one or another not both. > > > >Any ideas ? > > > >Thanks in advance