rewrite rule from apache

Cliff Wells cliff at develix.com
Tue Jun 2 20:27:42 MSD 2009


On Tue, 2009-06-02 at 06:00 -0400, matt91 wrote:
> figured them out:
> 
> rewrite ^/bg_sound_([^_]*)\.xspf
> $ /includes/bg_audio_player/bg_sound.php?tributeid=$1 break;
> rewrite ^/adamcarter
> $ /tributedetails.php?name=elvis_adam_carter&page=1 break;
> 
> I have one problem now, that is that they are not processed by php as
> the rewrites are in the "location /" and not "location ~.*php$", 

location ~ \.php$

> is their any way to fix this other than putting the fastcgi lines in
> the "location /" section?

You shouldn't need to.  Post your config file here.

Cliff

-- 
http://www.google.com/search?q=vonage+sucks






More information about the nginx mailing list