如何创建虚拟主机xamppwindows7

How to create virtual host xampp windows 7

这里我在xampp windows 7中创建了虚拟主机但是它没有用,当我打开它时显示Bad Request

Error: Bad Request
Your browser sent a request that this server could not understand. Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request

httpd-vhosts

<VirtualHost *:80>
##ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "C:/xampp/htdocs/ci_login"
ServerName www.ci_login.local
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common

主机文件:

127.0.0.1       www.ciadmin.local
127.0.0.1       www.ci_login.local

试试这个。请参阅以下目录中的错误 and/or 访问日志以了解错误。

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "C:/xampp/htdocs/ci_login"
    ServerName www.ci_login.local
    ServerAlias ci_login.local
    ErrorLog "C:/xampp/htdocs/ci_login/error.log"
    CustomLog "C:/xampp/htdocs/ci_login/access.log" common
</VirtualHost>