鍍金池/ 問答/PHP  Linux/ 怎樣讓nginx支持pathinfo模式?下面是我的配置文件

怎樣讓nginx支持pathinfo模式?下面是我的配置文件

server {
   listen 80;

   root /var/www/html/dms/public;
   index index.php index.html index.htm index.nginx-debian.html;

   server_name www.abc.com;

   location / {

       try_files $uri $uri/ /index.php?$query_string;
   }


   location ~ \.php$ {
       include snippets/fastcgi-php.conf;
       fastcgi_pass unix:/run/php/php7.0-fpm.sock;
   }

   location ~ /\.ht {
       deny all;
   }
}
回答
編輯回答
編輯回答
綰青絲

http://nginx.org/en/docs/http...

這兒是文檔說明.
樓上是示例說明.

2018年9月13日 21:08
編輯回答
玩控

這里有個現(xiàn)成的,照這個寫的試試看。

2017年8月31日 08:05