您好!欢迎来到聚码网

聚码网

热门搜索: 相亲小程序    搭子源码    直播系统自有商城   
  • php-同一个域名,Nginx可以根据目录指定到不同网站吗?
  • 聚码交流
  • 0 1
  • yhuxAvNbtxUM
    0000-00-00 00:00:00
  • 回帖
假设同一台服务器有三个网站A,B,C但只有一个域名www.abc.com期望:访问www.abc.com/a可以访问A网站的内容,访问www.abc.com/b可以访问B网站的内容,访问www.abc.com/c可以访问C网站的内容,以此类推...Nginx应该怎么配置呢?我的Nginx是这样配置的,但是不能达到想要的效果:(location/a{root/path/to/web/a;try_files$uri$uri//index.php;}location/b{root/path/to/web/b;try_files$uri$uri//index.php;}location/c{root/path/to/web/c;try_files$uri$uri//index.php;}location~.*\.php?{includefastcgi_params;fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;fastcgi_intercept_errorson;fastcgi_pass127.0.0.1:900;}
最近热帖
近期热议
联系我们
Q Q:317563994
电话:400-000-000
邮箱:317563994@qq.com
时间:09:00 - 17:00