【发布时间】:2013-11-16 19:08:14
【问题描述】:
我正在尝试设置我的虚拟主机。
这是我的Hosts文件
的设置 127.0.0.1 localhost
127.0.0.1 test.local
这是我在 httpd-Vhosts.Conf 文件中的设置
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:/xampp/htdocs/test"
ServerName http://test.local/
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common</VirtualHost>
这是我遇到的错误,
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
我已经启用了这条线
Include conf/extra/httpd-vhosts.conf
但我不知道我在这里缺少什么来创建虚拟主机。
【问题讨论】:
标签: php apache xampp virtualhost