- 已关闭。**此问题为not about programming or software development。当前不接受答案。
此问题似乎与a specific programming problem, a software algorithm, or software tools primarily used by programmers无关。如果您认为此问题与another Stack Exchange site的主题有关,您可以留下评论,说明在何处可以回答此问题。
昨天关门了。
Improve this question
我希望域"www.example.com,www.example.com"将用户带到/var/www/html/,域"www.example.com,www.example.com"将用户带到/var/www/html/example-2/ example-1.com , www.example-1.com " to take users to /var/www/html/ and the domain, " example-2.com , www.example-2.com " to take users to /var/www/html/example-2/
每个域的根目录不同。
我以前做过,但是不记得怎么做了,我想是用httpd.conf加虚拟主机什么的,然后重启服务器。
有什么建议吗?
我试着在谷歌上搜索,但我没有找到一个简单的答案...
1条答案
按热度按时间djp7away1#
你可以这样做,我给你分享Apache documentation,你需要使用两个vhost,一个vhost对应一个文件,我更喜欢,你不需要修改httpd.conf。
希望这对你有帮助