IIS Subdomains (2)
am 14.11.2004 18:38:52 von Andrew
Hi,
Does anyone know of or have a script which can be executed when someone
accesses port 80 of an IIS web server to look at the domain name they have
entered and re-direct them to the correct virtual directory?
This could be used to redirect for example: http://mydomain.com to
http://serverip/mydomain
or
http://test.mydomain.com to http://serverip/mydomain/test
--
Thanks,
Andrew Bonney (abweb)
www.andrewbonney.com
andrew@bonney.co.uk
Tel: 01943 872966
Fax: 08701 309329
abweb is a registered Microsoft partner
This e-mail was scanned with Norton AntiVirus 2004 software for viruses and
worms prior to the message being sent. If you received this e-mail in error,
please reply to abweb to explain the problem. Please do not read the e-mail
as it may contain personal information.
Re: IIS Subdomains (2)
am 14.11.2004 18:52:28 von jmaltz
Hi,
Yes - create 3 websites, all using host headers
(http://www.visualwin.com/host-header/). Make one "mydomain.com", another
"test.mydomain.com" and a third "serverip" (or you can leave the default,
which is a catch-all)
Right click mydomain.com's website, go to properties, then the "Home
Directory" tab. Under "The content.." click "A redirection to a URL" and
put in http://serverip/mydomain
Now go to the properties for the website test.mydomain.com, follow the exact
steps above, and put http://serverip/mydomain/test in its place
The last website will be your actual content
--
--Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does work on VPC 2004? Find out
here
Only reply by newsgroup. I do not do technical support via email. Any
emails I have not authorized are deleted before I see them.
"Andrew Bonney (abweb)" wrote in message
news:eS2$SDnyEHA.3416@TK2MSFTNGP09.phx.gbl...
> Hi,
> Does anyone know of or have a script which can be executed when someone
> accesses port 80 of an IIS web server to look at the domain name they have
> entered and re-direct them to the correct virtual directory?
>
> This could be used to redirect for example: http://mydomain.com to
> http://serverip/mydomain
> or
> http://test.mydomain.com to http://serverip/mydomain/test
>
> --
> Thanks,
> Andrew Bonney (abweb)
>
> www.andrewbonney.com
> andrew@bonney.co.uk
> Tel: 01943 872966
> Fax: 08701 309329
>
> abweb is a registered Microsoft partner
>
>
> This e-mail was scanned with Norton AntiVirus 2004 software for viruses
> and worms prior to the message being sent. If you received this e-mail in
> error, please reply to abweb to explain the problem. Please do not read
> the e-mail as it may contain personal information.
>
>
>
>
Re: IIS Subdomains (2)
am 14.11.2004 19:28:36 von Andrew
Sorry, forgot to mention, I'm running XP so i can only have one website. I
have heard of an asp script before for this purpose but I don't know where i
could get one.
--
Thanks,
Andrew Bonney (abweb)
www.andrewbonney.com
andrew@bonney.co.uk
Tel: 01943 872966
Fax: 08701 309329
abweb is a registered Microsoft partner
This e-mail was scanned with Norton AntiVirus 2004 software for viruses and
worms prior to the message being sent. If you received this e-mail in error,
please reply to abweb to explain the problem. Please do not read the e-mail
as it may contain personal information.
"Jonathan Maltz [MS-MVP]" wrote in message
news:uBqChKnyEHA.2016@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> Yes - create 3 websites, all using host headers
> (http://www.visualwin.com/host-header/). Make one "mydomain.com", another
> "test.mydomain.com" and a third "serverip" (or you can leave the default,
> which is a catch-all)
>
> Right click mydomain.com's website, go to properties, then the "Home
> Directory" tab. Under "The content.." click "A redirection to a URL" and
> put in http://serverip/mydomain
>
> Now go to the properties for the website test.mydomain.com, follow the
> exact steps above, and put http://serverip/mydomain/test in its place
>
> The last website will be your actual content
>
> --
> --Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
> http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
> tutorial site :-)
> http://vpc.visualwin.com - Does work on VPC 2004? Find
> out here
> Only reply by newsgroup. I do not do technical support via email. Any
> emails I have not authorized are deleted before I see them.
>
>
> "Andrew Bonney (abweb)" wrote in message
> news:eS2$SDnyEHA.3416@TK2MSFTNGP09.phx.gbl...
>> Hi,
>> Does anyone know of or have a script which can be executed when someone
>> accesses port 80 of an IIS web server to look at the domain name they
>> have entered and re-direct them to the correct virtual directory?
>>
>> This could be used to redirect for example: http://mydomain.com to
>> http://serverip/mydomain
>> or
>> http://test.mydomain.com to http://serverip/mydomain/test
>>
>> --
>> Thanks,
>> Andrew Bonney (abweb)
>>
>> www.andrewbonney.com
>> andrew@bonney.co.uk
>> Tel: 01943 872966
>> Fax: 08701 309329
>>
>> abweb is a registered Microsoft partner
>>
>>
>> This e-mail was scanned with Norton AntiVirus 2004 software for viruses
>> and worms prior to the message being sent. If you received this e-mail in
>> error, please reply to abweb to explain the problem. Please do not read
>> the e-mail as it may contain personal information.
>>
>>
>>
>>
>
>
Re: IIS Subdomains (2)
am 14.11.2004 22:57:31 von jeff.nospam
On Sun, 14 Nov 2004 18:28:36 -0000, "Andrew Bonney \(abweb\)"
wrote:
>Sorry, forgot to mention, I'm running XP so i can only have one website. I
>have heard of an asp script before for this purpose but I don't know where i
>could get one.
Try the ASP groups, but you should be able to redirect to a virtual
directory based on the HTTP_HOST server varaible.
Jeff
Re: IIS Subdomains (2)
am 14.11.2004 22:59:17 von jmaltz
Hi,
Where will you be running the other websites then?
Without host headers you can't have test.domain.com, other.domain.com, etc,
unless they all run on the same site. You could then make an index script
that checks the Host: variable, but that seems a little bit of a waste
Also, IIS 5.1 on XP will limit you to 10 simultaneous connections
--
--Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does work on VPC 2004? Find out
here
Only reply by newsgroup. I do not do technical support via email. Any
emails I have not authorized are deleted before I see them.
"Andrew Bonney (abweb)" wrote in message
news:OIzhFfnyEHA.4028@TK2MSFTNGP15.phx.gbl...
> Sorry, forgot to mention, I'm running XP so i can only have one website. I
> have heard of an asp script before for this purpose but I don't know where
> i could get one.
>
> --
> Thanks,
> Andrew Bonney (abweb)
>
> www.andrewbonney.com
> andrew@bonney.co.uk
> Tel: 01943 872966
> Fax: 08701 309329
>
> abweb is a registered Microsoft partner
>
>
> This e-mail was scanned with Norton AntiVirus 2004 software for viruses
> and worms prior to the message being sent. If you received this e-mail in
> error, please reply to abweb to explain the problem. Please do not read
> the e-mail as it may contain personal information.
>
>
>
> "Jonathan Maltz [MS-MVP]" wrote in message
> news:uBqChKnyEHA.2016@TK2MSFTNGP15.phx.gbl...
>> Hi,
>>
>> Yes - create 3 websites, all using host headers
>> (http://www.visualwin.com/host-header/). Make one "mydomain.com",
>> another "test.mydomain.com" and a third "serverip" (or you can leave the
>> default, which is a catch-all)
>>
>> Right click mydomain.com's website, go to properties, then the "Home
>> Directory" tab. Under "The content.." click "A redirection to a URL" and
>> put in http://serverip/mydomain
>>
>> Now go to the properties for the website test.mydomain.com, follow the
>> exact steps above, and put http://serverip/mydomain/test in its place
>>
>> The last website will be your actual content
>>
>> --
>> --Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
>> http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
>> tutorial site :-)
>> http://vpc.visualwin.com - Does work on VPC 2004? Find
>> out here
>> Only reply by newsgroup. I do not do technical support via email. Any
>> emails I have not authorized are deleted before I see them.
>>
>>
>> "Andrew Bonney (abweb)" wrote in message
>> news:eS2$SDnyEHA.3416@TK2MSFTNGP09.phx.gbl...
>>> Hi,
>>> Does anyone know of or have a script which can be executed when someone
>>> accesses port 80 of an IIS web server to look at the domain name they
>>> have entered and re-direct them to the correct virtual directory?
>>>
>>> This could be used to redirect for example: http://mydomain.com to
>>> http://serverip/mydomain
>>> or
>>> http://test.mydomain.com to http://serverip/mydomain/test
>>>
>>> --
>>> Thanks,
>>> Andrew Bonney (abweb)
>>>
>>> www.andrewbonney.com
>>> andrew@bonney.co.uk
>>> Tel: 01943 872966
>>> Fax: 08701 309329
>>>
>>> abweb is a registered Microsoft partner
>>>
>>>
>>> This e-mail was scanned with Norton AntiVirus 2004 software for viruses
>>> and worms prior to the message being sent. If you received this e-mail
>>> in error, please reply to abweb to explain the problem. Please do not
>>> read the e-mail as it may contain personal information.
>>>
>>>
>>>
>>>
>>
>>
>
>