How to remove the "IF" in this fcgi config
Ed W
lists at wildgooses.com
Thu Feb 21 19:08:56 UTC 2013
On 21/02/2013 17:54, Igor Sysoev wrote:
> location ~ ^(?<script_name>.+\.php)(?<path_info>/|$) {
> try_files $script_name =404;
>
> include fastcgi2.conf;
> fastcgi_param PATH_INFO $path_info;
> fastcgi_pass 127.0.0.1:9000;
> }
Thanks!!
Can I ask you to confirm the correction of a typo in your answer. Do I
want this:
....(?<path_info>.*) {
ie is this ammended version correct in the face of a URL such as:
blah.php/some/path?param=2
Thanks
Ed W
More information about the nginx
mailing list