WAMP站点请求来自不同目录的文件

时间:2017-02-03 08:33:14

标签: php wamp

我的电脑上有一个非常奇怪的行为,使用Windows 7和WAMP。

我有两个网站: ruth.local和ctf.dev。

尝试浏览ruth.local我收到很多错误,例如:注意:未定义的变量:第22行的C:\ wamp \ www \ ctf.dev \ settings \ init.php中的db_name

我的httpd-vhosts.conf文件包含以下条目:

<VirtualHost *:80>
ServerAdmin webmaster@ctf.dev
DocumentRoot "c:/wamp/www/ctf.dev"
ServerName ctf.dev
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@ruth.local
DocumentRoot "c:/wamp/www/ruth.local"
ServerName ruth.local
ErrorLog "logs/ruth.local-error.log"
CustomLog "logs/ruth.local-access.log" common
</VirtualHost>

我的主机文件包含以下内容:

127.0.0.1 ctf.dev
127.0.0.1 ruth.local
::1 ctf.dev
::1 ruth.local

为什么ruth.local会尝试调用ctf.dev中的文件?

0 个答案:

没有答案