TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Nginx Rewrite Causing Wrong Path for PHP Script (http://www.talkphp.com/general/3578-nginx-rewrite-causing-wrong-path-php-script.html)

stewart 11-09-2008 12:32 AM

Nginx Rewrite Causing Wrong Path for PHP Script
 
Alright guys, I have a large chunk of rewrites to help clean up my url's a bit on my site.. On my local machine I am running Apache and just use an .htaccess file and normal php as a module, so no problems there..

But on my server however, I am running Nginx and running PHP as a fastcgi process. In my site's config file I have my fastcgi_param set to /home/user/html/public$fastcgi_script_name ...

Well I need a way to change the value of fastcgi_script_name when I have modified (search friendly..) url's that are being rewritten. Because instead of grabbing the script name, like public/text.php?x=z it will grab public/text/post-title.html and then throw me a "No input file given." error (because there is no file there..) .

How should I go about sending the true PHP script name to my fastcgi_script_name variable ? It just grabs the URI of the PHP script.. what other options are there ?

Thanks, Stewart. 8-)


All times are GMT. The time now is 03:20 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0