Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
174 views
in Technique[技术] by (71.8m points)

ngnix 配置问题

手机和pc端都在一个网站目录,但是pc对应一个网址,手机对应一个网址,nginx 对应的入口文件 m.php 访问不到,一直访问的是index.php,nginx的虚拟主机配置了对应的不同文件

      index m.php;
      if (!-e $request_filename) {
            rewrite  ^(.*)$  /m.php?s=$1  last;
            break;
        }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

哥们,你修改配置后,重启服务器了吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...