IIS Server - WWW prefix redireect to default directory?

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > June 2005 > WWW prefix redireect to default directory?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WWW prefix redireect to default directory?
MNSD

2005-06-29, 2:48 am

Hi need help
Sorry for my english I hope you'll understand.
I'm working on win2k3 iis 6.0
I've two domains on one static IP both on port 80, default domain1.com have public directory C:\Inetpub\wwwroot
and second domain2.com have the public directory under C:\Inetpub\domain2
now I've some problem with 2nd domain:
when I open http://domain2.com this url goes to right C:\Inetpub\domain2
if I add www (http://www.domain2.com) then goes to C:\Inetpub\wwwroot (default public directory for domain1.com) although default domain (domain1.com) with and without www works fine.

Is there anyway to resolve this problem?
Thanks

From http://www.developmentnow.com/g/59_...tserver-iis.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Kristofer Gafvert [MVP]

2005-06-29, 2:48 am

Add the host header www.domain2.com into the list of host headers for site
2.



--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


MNSD wrote:

> Hi need help
> Sorry for my english I hope you'll understand.
> I'm working on win2k3 iis 6.0
> I've two domains on one static IP both on port 80, default domain1.com

have public directory C:\Inetpub\wwwroot
> and second domain2.com have the public directory under C:\Inetpub\domain2
> now I've some problem with 2nd domain:
> when I open http://domain2.com this url goes to right C:\Inetpub\domain2
> if I add www (http://www.domain2.com) then goes to C:\Inetpub\wwwroot

(default public directory for domain1.com) although default domain
(domain1.com) with and without www works fine.
>
> Is there anyway to resolve this problem?
> Thanks
>
> From http://www.developmentnow.com/g/59_...tserver-iis.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com