How to remove the "IF" in this fcgi config
Christoph Schug
chris+nginx at schug.net
Sun Feb 24 19:40:24 UTC 2013
On 2013-02-22 23:05, Valentin V. Bartenev wrote:
> IMHO,
>
> location ~ ^(?<script_name>.+\.php)(?<path_info>/.*)?$ {
>
> looks better.
In order to put yet another iteration into the game, I prefer the
script_name part to be non-greedy
location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
Of course it still depends on someone's preference what to match in
case of
/foo.php/bar.php/quux
-cs
More information about the nginx
mailing list