nginx配置pathinfo

    xiaoxiao2021-04-17  40

    server {         listen       8080;         server_name  localhost 127.0.0.0;         #charset koi8-r;         #access_log  logs/host.access.log  main;         location / {                                root  D:/test/nginx/html/paascms;             index  index.php index.html;          if (!-e $request_filename) {                  rewrite  ^/(.*)$  /index.php/$1  last;                  break;                }                  }         #error_page  404              /404.html;         # redirect server error pages to the static page /50x.html         #         error_page   500 502 503 504  /50x.html;         location = /50x.html {            root   html;         }         # proxy the PHP scripts to Apache listening on 127.0.0.1:80         #         #location ~ \.php$ {         #    proxy_pass   http://127.0.0.1;         #}         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000         #         location ~ \.php(.*){             root           D:/test/nginx/html/paascms;             fastcgi_pass   127.0.0.1:9001;             fastcgi_index  index.php;             fastcgi_param  SCRIPT_FILENAME  $DOCUMENT_ROOT$fastcgi_script_name; fastcgi_param PATH_INFO $1;             include        fastcgi_params;         }
    转载请注明原文地址: https://ju.6miu.com/read-674302.html

    最新回复(0)