4
我在mac os狮子上使用Xampp(Apace 2.2.20)进行开发。我有一些CMS项目,我想要通过访问cms1.localhost,cms2.localhost,cms3.localhost等来访问它们。本地主机上的多个虚拟主机进行开发
目前,使用下面的设置,所有内容都会转到任何第一个虚拟hosts指令即(/ Applications/XAMPP/migration/trunk)。
任何人都可以请指出我在正确的方向。我不能认为在调试等方面还有什么其他的做法,以便帮助也是有用的。非常感谢。
<VirtualHost *:80>
ServerName localhost
DocumentRoot "/Applications/XAMPP/migration/trunk"
</Virtualhost>
<VirtualHost *:80>
ServerName rix.localhost
DocumentRoot "/Applications/XAMPP/projects/giving"
</Virtualhost>
在/ etc/hosts中我有
127.0.0.1 localhost
127.0.0.1 rix.localhost
VHost文件在哪里?这可能不是正在阅读的人。我知道这看起来很愚蠢,但我看到人们之前被这条鱼咬了;) –