How to remove the "IF" in this fcgi config

Francis Daly francis at daoine.org
Fri Feb 22 20:11:26 UTC 2013


On Thu, Feb 21, 2013 at 07:08:56PM +0000, Ed W wrote:
> On 21/02/2013 17:54, Igor Sysoev wrote:

Hi there,

> >                location ~ ^(?<script_name>.+\.php)(?<path_info>/|$) {

> Can I ask you to confirm the correction of a typo in your answer. Do I 
> want this:
> 
>     ....(?<path_info>.*) {

You probably want

               location ~ ^(?<script_name>.+\.php)(?<path_info>/.*|$) {

because you want to match /X.php or /X.php/X but not /X.phpX.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list