Jump to content

Virtual Hosts?!?


M109uk

Recommended Posts

Hi all,

 

i have a server running and i want 2 hosts, well to be more specific i have a website www.mydomain.com and i want to make a sub domain forum.mydomain.com, i have set all this up with my DNS server and everything and have placed the following in my conf file:


NameVirtualHost *



<VirtualHost *>

   DocumentRoot "H:WebsitesBioCoders"

   ServerName www.mydomain.com

</VirtualHost>



<VirtualHost *>

   DocumentRoot "H:WebsitesForum"

   ServerName forum.mydomain.com

</VirtualHost>

 

if tried to add \'ServerAlias\' to the forum virtual host and everything but all i get is a blank screen telling me that it can not find it and to hit refresh or try again another time?!? the main host works but not this one :(

 

i am running Apache 2.0.43 with PHP 4.3.0 and MySQL on Windows XP Home.

 

thanks for any help :)

 

 

 

 

 

****

 

ok i think i have it working now, just some typo\'s :roll:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.