amy_888 发表于 2018-11-16 11:59:47

让Nginx支持pathinfo-stone

server{  
    listen 80;
  
    server_name www.test.com;
  
    location / {
  
      root html/www;
  
      index index.php index.html index.htm;
  
    }
  
    location ~ \.php(.*)$ {
  
      root html/www;
  
      fastcgi_pass 127.0.0.1:9000;
  
      fastcgi_index index.php;
  
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  
      fastcgi_param PATH_INFO $1;
  
      include fastcgi_params;
  
    }
  
}


页: [1]
查看完整版本: 让Nginx支持pathinfo-stone