Page 1 of 1

Virtual Hosts

PostPosted: 09. February 2005 23:07
by rockyuk
Hi there,
I have tried everything to get my virtual hosts to work and for some reason i still can't get them to work. Any help would be much appreciated i have also read some posts on here but still can't get them to work.

Thanks

Rockyuk :?

PostPosted: 10. February 2005 05:02
by MacDaddy
Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin admin@domain.com
    ServerName www.domain.com:80
    DocumentRoot "C:/htdocs/domain"
    <Directory "C:/htdocs/domain">
        Order Allow,Deny
        Allow from all
        Options Indexes FollowSymLinks +Includes ExecCGI
        AllowOverride All
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@domain2.com
    ServerName www.domain2.com:80
    DocumentRoot "C:/htdocs/domain2"
    <Directory "C:/htdocs/domain2">
        Order Allow,Deny
        Allow from all
        Options Indexes FollowSymLinks +Includes ExecCGI
        AllowOverride All
    </Directory>
</VirtualHost>