Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

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

$
0
0
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

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>