【发布时间】:2011-07-29 22:53:41
【问题描述】:
我目前正在使用基于名称的虚拟主机配置,从同一 IP 地址为大约 5 个不同的网站提供服务器,就像在 apache 文档中一样:
<VirtualHost *:80>
ServerName www.domain.tld
DocumentRoot /www/domain
</VirtualHost>
<VirtualHost *:80>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>
是否有可能有类似的东西:
<VirtualHost *:80>
ServerName www.domain.tld/folderpath
DocumentRoot /www/software
</VirtualHost>
此文件夹中的网页使用不同的软件堆栈,我想将其很好地分开。上面的方法我试过了,还是不行。
【问题讨论】:
标签: apache virtualhost