rewrite rule from apache

matt91 nginx-forum at nginx.us
Tue Jun 2 14:00:07 MSD 2009


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$", is their any way to fix this other than putting the fastcgi lines in the "location /" section?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2537,2557#msg-2557






More information about the nginx mailing list