为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

PHP
HUH函数 2019-03-07 07:25:11
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; } }
查看完整描述

3 回答

?
元芳怎么了

TA贡献1798条经验 获得超7个赞

这里有个现成的,照这个写的试试看。

查看完整回答
反对 回复 2019-03-18
  • 3 回答
  • 0 关注
  • 343 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信