httpd.conf

아래의 내용들이 추가되어 있어야 함.


NameVirtualHost 127.0.0.1

<Directory "C:/DIR">
    Options FollowSymlinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>



<VirtualHost 127.0.0.1>
    ServerName test1.testdomain.com
    ServerAlias test1.testdomain.com
    ServerAdmin admin@test1.testdomain.com
    DocumentRoot "C:/DIR/test1"
    CustomLog logs/test1_testdomain_com.log combined
</VirtualHost>

<VirtualHost 127.0.0.1>
    ServerName test2.testdomain.com
    ServerAlias test2.testdomain.com
    ServerAdmin admin@test2.testdomain.com
    DocumentRoot "C:/DIR/test2"
    CustomLog logs/test2_testdomain_com.log combined
</VirtualHost>

...
...
...






C:\Windows\system32\drivers\etc\hosts

127.0.0.1 test1.testdomain.com
127.0.0.1 test2.testdomain.com

Posted by bloodguy
,