在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/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...

這兒是文檔說(shuō)明.
樓上是示例說(shuō)明.

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

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

2017年8月31日 08:05