【已完成】Linux 面板,虚拟目录如何设置?
centos 系统nginx,php,mysql环境希望实现的功能:
网站是放在(/www/wwwroot/abc.com/目录),当访问https://www.abc.com/test/时,访问到另外一个指定的目录的网站(/www/wwwroot/test/)
用了网上的方法:https://blog.csdn.net/leftfist/article/details/134450805
但是,结果不执行php
也有安全问题。
求助各位大神,有没有解决办法呢?
可尝试在网站配置文件中添加:保存配置文件并重启nginx服务
location /test/ {
root /www/wwwroot/test/;
index index.html index.htm;
} 阿珂 发表于 2023-12-28 16:07
可尝试在网站配置文件中添加:保存配置文件并重启nginx服务
感谢感谢,找到之前一个帖子,用软链接搞定了
页:
[1]