hosting subdomain problem
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Hi
Just a simple question for you brighter ones. I have several web sites running on my web server but now want to host sub domains but when I put in the setting into httpd-vhosts.conf as below it doesn't work. Where am I going wrong?
<VirtualHost *:80>
ServerName mydomain.co.nz
ServerAlias www.mydomain.co.nz
DocumentRoot "D:/www/mydomain.co.nz "
<Directory "D:/www/mydomain.co.nz ">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName subdomain.mydomain.co.nz
ServerAlias www.subdomain.mydomain.co.nz
DocumentRoot "D:\www\subdomain.mydomain.co.nz"
<Directory "D:\www\subdomain.mydomain.co.nz">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Just a simple question for you brighter ones. I have several web sites running on my web server but now want to host sub domains but when I put in the setting into httpd-vhosts.conf as below it doesn't work. Where am I going wrong?
<VirtualHost *:80>
ServerName mydomain.co.nz
ServerAlias www.mydomain.co.nz
DocumentRoot "D:/www/mydomain.co.nz "
<Directory "D:/www/mydomain.co.nz ">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName subdomain.mydomain.co.nz
ServerAlias www.subdomain.mydomain.co.nz
DocumentRoot "D:\www\subdomain.mydomain.co.nz"
<Directory "D:\www\subdomain.mydomain.co.nz">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>