xampp vhost

2013-12-24 10:48  1562人阅读  评论 (0)

xampp vhost

D:\xampp\apache\conf\extra\httpd-vhosts.conf

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "D:/xampp/htdocs"
    ServerName localhost
    #ServerAlias www.dummy-host.example.com
    ErrorLog "logs/dummy-localhost-error.log"
    CustomLog "logs/dummy-localhost-access.log" common
    <Directory "D:/xampp/htdocs">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "D:/workspaces/test.com"
    ServerName test.com
    #ServerAlias *.test.com
    ErrorLog "logs/dummy-test.com-error.log"
    CustomLog "logs/dummy-test.com-access.log" common
    <Directory "D:/workspaces/test.com">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>