Welcome! Log In Create A New Profile

Advanced

Re: How to remove the "IF" in this fcgi config

Ed W
February 25, 2013 04:22PM
On 24/02/2013 19:40, Christoph Schug wrote:
> 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

You beat me - I was just about to post the same!

I think the non greedy is probably the more common case

Thanks!

Ed W

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

How to remove the "IF" in this fcgi config

Ed W February 21, 2013 12:50PM

Re: How to remove the "IF" in this fcgi config

Igor Sysoev February 21, 2013 12:56PM

Re: How to remove the "IF" in this fcgi config

Ed W February 21, 2013 02:10PM

Re: How to remove the "IF" in this fcgi config

Francis Daly February 22, 2013 03:12PM

Re: How to remove the "IF" in this fcgi config

Valentin V. Bartenev February 22, 2013 05:08PM

Re: How to remove the "IF" in this fcgi config

Francis Daly February 23, 2013 08:42AM

Re: How to remove the "IF" in this fcgi config

csg February 24, 2013 02:42PM

Re: How to remove the "IF" in this fcgi config

Ed W February 25, 2013 04:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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