Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: How to remove the "IF" in this fcgi config

$
0
0
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>