On 08/28/14 15:15, Christopher Zimmermann wrote:
On Thu, 28 Aug 2014 14:37:34 +0300 Gregory Edigarov
<[email protected]> wrote:
Hello
are there any plans to implement uri rewriting or something in a manner
of 'try_files' configuration option of nginx?
I plan to add a URL stripping option, somewhat more powerful than the
nginx alias directive:
root [strip number] directory
Set the document root of the server. The directory is a
pathname within the chroot(2) root directory of httpd. If not
specified, it defaults to /htdocs. If the strip option is set, number
path components are removed from the beginning of the URI before
directory is prepended.
this would allow you to do for example:
location "/wiki/" {
strip 1
root "/dokuwiki"
directory index "doku.php"
fastcgi socket "/tmp/php.sock"
}
it would be absolutely nice to have something like try_files for
locations and servers.
like
location "/some/" {
root "/some/"
try_files $uri index.php?$uri
}