Home  >  Q&A  >  body text

How to set nginx to support pathinfo

It’s a very weak question that has not been solved. I searched countless information but couldn’t solve it.

nginx version:1.10.2

phpcn_u1582phpcn_u15822714 days ago927

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 17:10:45

         fastcgi_pass   127.0.0.1:9000;
         fastcgi_index  index.php;
         fastcgi_split_path_info ^(.+\.php)(.*)$;     #增加这一句
         fastcgi_param PATH_INFO $fastcgi_path_info;    #增加这一句
         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
         include        fastcgi_params;

    reply
    0
  • Cancelreply