我* 哦,前提
配置
额外的nginx.conf
用于开启子域名;
配置子域名文件夹中的.conf
把index 的index.php 放在最后就好了,曰哦
【尴尬又不失礼貌的微笑】
server {
listen 80;
server_name blog.****.com;
# location / {
root /usr/share/nginx/html/blog;
index index.html index.htm index.php;
error_page 500 502 503 504 /50x.html;
include enable-php.conf;
关于访问域名XXX/p.php,下载php文件,
我这里是添加了
include enable-php.conf;
完美解决!
与网上配置fascig和查看9000端口不同。
你们可以尝试注释这行,就能发现登录域名变成了下载文件了。