Hosting multiple sites using Host Names and Port Numbers -- help!

Hosting multiple sites using Host Names and Port Numbers -- help!

Post by Timoth » Thu, 22 Feb 2007 06:57:27


So, this may be a really simple thing to do, but I am having trouble,
so would appreciate any help.

Here is the thing. I am trying to host multiple websites on my IIS 6.x
server. Currently it is set-up so that each site can be accessed by
typing http://www.yqcomputer.com/

So: site 1 is at http://www.yqcomputer.com/
site2 is at http://www.yqcomputer.com/
and so on.

When I go to setup the Host Names, I am trying to make it such that
http://www.yqcomputer.com/ ://sitename1.mymainsite.com
and http://www.yqcomputer.com/ ://sitename2.mymainsite.com
and so on but instead I get the message "Invalid Host Name."

Do I need to assign each "site" a different port on the IP address?
And if so, how do I redirect so that the content comes from the
correct files? In other words, the content for sitename1 is different
from the content of sitename2 which is different from the content of
sitename3, etc.

I hope that makes sense. If not, I can try to clarify more.

Any help is appreciated. I took a look at iisanswers site and the
microsoft site, but neither is giving me what I am looking for.

Thanks in advance,
Timothy
XXXX@XXXXX.COM
 
 
 

Hosting multiple sites using Host Names and Port Numbers -- help!

Post by Kristofer » Thu, 22 Feb 2007 07:11:33

You don't use host names to "redirect". If you want to redirect, you need
to set up a redirection.

What you probably need to do is:

- Create a new website, use the 71.149.xxx.xxx IP address and port 80.
Give it the host header name "sitename1.mymainsite.com"
- Setup the DNS server
- Setup a redirection on http://www.yqcomputer.com/
redirects to sitename1.mymainsite.com

I say "probably" because i am unsure what you really want to do. The above
steps will create a new website accessible by using
http://www.yqcomputer.com/ . It will also redirect
http://www.yqcomputer.com/


--
Regards,
Kristofer Gafvert
http://www.yqcomputer.com/