RE: IIS W2KR2 Question

2013-05-09 Thread Ken Schaefer
I think you're confusing yourself more :)

A domain name is just that - a name e.g. 
www.yourcompany.com<http://www.yourcompany.com>. All the DNS does is resolve 
that name to an IP address

A website is a logical collection of resources (web pages, images etc). It can 
be accessed by IP address, domain name etc.

Now, I'm a bit confused when you write: I have been trying to create a rule to 
redirect a subdomain name to a web page under the main domain.

You don't redirect "domain names" - a domain name points to an IP address. If 
you want it to point someone else, just update the DNS server. A domain name 
doesn't point to a webpage - it points to an IP address.

Now, what I think you want to do is:
Users who enter www.google.com<http://www.google.com> in their browser get a 
webpage from c:\inetpub\wwwroot
Users who enter trial.google.com in their browser get a webpage from 
c:\inetpub\wwwroot\test
(i.e. test is a folder that, coincidently, is located under the root of the 
first website, but is also the root of the second website).

If that's the case, just follow the steps I posted immediately below (create 
two websites)

If you actually want to do a redirect - that means that people are actually 
asking for http://trial.google.com in their browser, but the server tells them 
to make another request for http://google.com/test - is this what you want to 
happen?

Cheers
Ken


From: Daniele Bartoli [mailto:danielebart...@gmail.com]
Sent: Friday, 10 May 2013 3:12 AM
To: NT System Admin Issues
Subject: Re: IIS W2KR2 Question

I seemed to have confused matters.  Thanks for your patience.  Let me try to 
explain this differently with the correct wording.

I have been trying to create a rule to redirect a subdomain name to a web page 
under the main domain.

For example, I want http://trial.google.com to redirect to 
http://google.com/test

I am thinking that the URL Rewrite feature in IIS could accomplish this.  
However I am not sure how to write the rule?  Also would the rule go on the 
server or the site in IIS?

Or is there another option?



On Wed, May 8, 2013 at 5:47 PM, Ken Schaefer 
mailto:k...@adopenstatic.com>> wrote:
Easiest way is to:
a) create a second website.
b) Configure the second website with the host header 
"trial.google.com<http://trial.google.com>"
c) Set the home directory of the second website to be the "test" folder
But, what you are asking for now is not what you were asking for before...

Cheers
Ken

From: Daniele Bartoli 
[mailto:danielebart...@gmail.com<mailto:danielebart...@gmail.com>]
Sent: Thursday, 9 May 2013 9:47 AM

To: NT System Admin Issues
Subject: Re: IIS W2KR2 Question

There is one site in IIS.  So all google.com<http://google.com> traffic goes to 
that one site (i.e. Default Web Site).
Within that site there is a page (google.com/test<http://google.com/test>) that 
they are trying to associate to the other domain name 
(trial.google.com<http://trial.google.com>)
How do I do that?
On Wed, May 8, 2013 at 4:19 PM, Kurt Buff 
mailto:kurt.b...@gmail.com>> wrote:
Err,  my reply should read:

"This is easier if google.com<http://google.com> and 
trial.google.com<http://trial.google.com> are actually
different sites on separate IP addresses on the IIS server..."

Kurt

On Wed, May 8, 2013 at 4:17 PM, Kurt Buff 
mailto:kurt.b...@gmail.com>> wrote:
> On Wed, May 8, 2013 at 3:13 PM, Daniele 
> mailto:danielebart...@gmail.com>> wrote:
>> Got an IIS question that I am hoping someone can help with.
>>
>> I am using the google domain name fictiously to illustrate the example.
>>
>> So I have my web server, and it has a web page at 
>> google.com<http://google.com>.  I have an A record that points 
>> google.com<http://google.com> to an IP.
>>
>> Then I have anoher web page on that same server that is at 
>> trial.google.com/test<http://trial.google.com/test>.  I have an A record 
>> that points trial.google.com<http://trial.google.com> to the same IP as 
>> google.com<http://google.com>.
>>
>> If I try to manually go to 
>> trial.google.com/test<http://trial.google.com/test>, all works just fine.
>>
>> My question is, how do I redirect traffic so that the 
>> trial.google.com<http://trial.google.com> automatically goes to 
>> trial.google.com/test<http://trial.google.com/test>?
>>
>> Meanwhile, I don't want to impact what is already working, 
>> google.com<http://google.com>
>
> this is easier if google.com<http://google.com> and 
> trial.google.com<http://trial.google.com> are actually
> separate sites on the IIS server...
>
> In that case, just make the test page your default for 
> trial.google.com<htt

Re: IIS W2KR2 Question

2013-05-09 Thread Daniele Bartoli
I seemed to have confused matters.  Thanks for your patience.  Let me try
to explain this differently with the correct wording.

I have been trying to create a rule to redirect a subdomain name to a web
page under the main domain.

For example, I want http://trial.google.com to redirect to
http://google.com/test

I am thinking that the URL Rewrite feature in IIS could accomplish this.
 However I am not sure how to write the rule?  Also would the rule go on
the server or the site in IIS?

Or is there another option?




On Wed, May 8, 2013 at 5:47 PM, Ken Schaefer  wrote:

>  Easiest way is to:
>
> a) create a second website.
>
> b) Configure the second website with the host header “trial.google.com”***
> *
>
> c) Set the home directory of the second website to be the “test” folder***
> *
>
> But, what you are asking for now is not what you were asking for before…**
> **
>
> ** **
>
> Cheers
>
> Ken
>
> ** **
>
> *From:* Daniele Bartoli [mailto:danielebart...@gmail.com]
> *Sent:* Thursday, 9 May 2013 9:47 AM
>
> *To:* NT System Admin Issues
> *Subject:* Re: IIS W2KR2 Question
>
> ** **
>
> There is one site in IIS.  So all google.com traffic goes to that one
> site (i.e. Default Web Site).
>
> Within that site there is a page (google.com/test) that they are trying
> to associate to the other domain name (trial.google.com)
>
> How do I do that?
>
> On Wed, May 8, 2013 at 4:19 PM, Kurt Buff  wrote:
>
> Err,  my reply should read:
>
>
> "This is easier if google.com and trial.google.com are actually
>
> different sites on separate IP addresses on the IIS server..."
>
> Kurt
>
>
> On Wed, May 8, 2013 at 4:17 PM, Kurt Buff  wrote:
> > On Wed, May 8, 2013 at 3:13 PM, Daniele 
> wrote:
> >> Got an IIS question that I am hoping someone can help with.
> >>
> >> I am using the google domain name fictiously to illustrate the example.
> >>
> >> So I have my web server, and it has a web page at google.com.  I have
> an A record that points google.com to an IP.
> >>
> >> Then I have anoher web page on that same server that is at
> trial.google.com/test.  I have an A record that points trial.google.comto the 
> same IP as
> google.com.
> >>
> >> If I try to manually go to trial.google.com/test, all works just fine.
> >>
> >> My question is, how do I redirect traffic so that the 
> >> trial.google.comautomatically goes to
> trial.google.com/test?
> >>
> >> Meanwhile, I don't want to impact what is already working, google.com
> >
> > this is easier if google.com and trial.google.com are actually
> > separate sites on the IIS server...
> >
> > In that case, just make the test page your default for trial.google.com
> >
> > But, in this case, from dim memory, you'll need to enable host
> > headers, and you'll still want to make the test page as your default
> > page for trial.google.com
> >
> > See this article:
> > http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx
> >
> > Kurt
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe ntsysadmin
>
>  ** **
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe ntsysadmin
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe ntsysadmin
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: IIS W2KR2 Question

2013-05-08 Thread Ken Schaefer
Easiest way is to:
a) create a second website.
b) Configure the second website with the host header "trial.google.com"
c) Set the home directory of the second website to be the "test" folder
But, what you are asking for now is not what you were asking for before...

Cheers
Ken

From: Daniele Bartoli [mailto:danielebart...@gmail.com]
Sent: Thursday, 9 May 2013 9:47 AM
To: NT System Admin Issues
Subject: Re: IIS W2KR2 Question

There is one site in IIS.  So all google.com<http://google.com> traffic goes to 
that one site (i.e. Default Web Site).
Within that site there is a page (google.com/test<http://google.com/test>) that 
they are trying to associate to the other domain name 
(trial.google.com<http://trial.google.com>)
How do I do that?
On Wed, May 8, 2013 at 4:19 PM, Kurt Buff 
mailto:kurt.b...@gmail.com>> wrote:
Err,  my reply should read:

"This is easier if google.com<http://google.com> and 
trial.google.com<http://trial.google.com> are actually
different sites on separate IP addresses on the IIS server..."

Kurt

On Wed, May 8, 2013 at 4:17 PM, Kurt Buff 
mailto:kurt.b...@gmail.com>> wrote:
> On Wed, May 8, 2013 at 3:13 PM, Daniele 
> mailto:danielebart...@gmail.com>> wrote:
>> Got an IIS question that I am hoping someone can help with.
>>
>> I am using the google domain name fictiously to illustrate the example.
>>
>> So I have my web server, and it has a web page at 
>> google.com<http://google.com>.  I have an A record that points 
>> google.com<http://google.com> to an IP.
>>
>> Then I have anoher web page on that same server that is at 
>> trial.google.com/test<http://trial.google.com/test>.  I have an A record 
>> that points trial.google.com<http://trial.google.com> to the same IP as 
>> google.com<http://google.com>.
>>
>> If I try to manually go to 
>> trial.google.com/test<http://trial.google.com/test>, all works just fine.
>>
>> My question is, how do I redirect traffic so that the 
>> trial.google.com<http://trial.google.com> automatically goes to 
>> trial.google.com/test<http://trial.google.com/test>?
>>
>> Meanwhile, I don't want to impact what is already working, 
>> google.com<http://google.com>
>
> this is easier if google.com<http://google.com> and 
> trial.google.com<http://trial.google.com> are actually
> separate sites on the IIS server...
>
> In that case, just make the test page your default for 
> trial.google.com<http://trial.google.com>
>
> But, in this case, from dim memory, you'll need to enable host
> headers, and you'll still want to make the test page as your default
> page for trial.google.com<http://trial.google.com>
>
> See this article:
> http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx
>
> Kurt

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Re: IIS W2KR2 Question

2013-05-08 Thread Kurt Buff
a) Copy that page to the directory that contains the site trial.google.com
and then
b) a no-wait redirect page, either as the default page for google.com
or as google.com/test.[asp|htm|], that points to
trial.google.com/test, depending on how folks reach google.com

Something like this for html:
http://www.google.com/"; />

or something like this for asp:
Response.AddHeader("REFRESH","10;URL=test.aspx");

google for "zero second redirect"


Kurt

On Wed, May 8, 2013 at 4:46 PM, Daniele Bartoli
 wrote:
> There is one site in IIS.  So all google.com traffic goes to that one site
> (i.e. Default Web Site).
> Within that site there is a page (google.com/test) that they are trying to
> associate to the other domain name (trial.google.com)
> How do I do that?
>
> On Wed, May 8, 2013 at 4:19 PM, Kurt Buff  wrote:
>>
>> Err,  my reply should read:
>>
>> "This is easier if google.com and trial.google.com are actually
>> different sites on separate IP addresses on the IIS server..."
>>
>> Kurt
>>
>> On Wed, May 8, 2013 at 4:17 PM, Kurt Buff  wrote:
>> > On Wed, May 8, 2013 at 3:13 PM, Daniele 
>> > wrote:
>> >> Got an IIS question that I am hoping someone can help with.
>> >>
>> >> I am using the google domain name fictiously to illustrate the example.
>> >>
>> >> So I have my web server, and it has a web page at google.com.  I have
>> >> an A record that points google.com to an IP.
>> >>
>> >> Then I have anoher web page on that same server that is at
>> >> trial.google.com/test.  I have an A record that points trial.google.com to
>> >> the same IP as google.com.
>> >>
>> >> If I try to manually go to trial.google.com/test, all works just fine.
>> >>
>> >> My question is, how do I redirect traffic so that the trial.google.com
>> >> automatically goes to trial.google.com/test?
>> >>
>> >> Meanwhile, I don't want to impact what is already working, google.com
>> >
>> > this is easier if google.com and trial.google.com are actually
>> > separate sites on the IIS server...
>> >
>> > In that case, just make the test page your default for trial.google.com
>> >
>> > But, in this case, from dim memory, you'll need to enable host
>> > headers, and you'll still want to make the test page as your default
>> > page for trial.google.com
>> >
>> > See this article:
>> > http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx
>> >
>> > Kurt
>>
>> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
>> ~   ~
>>
>> ---
>> To manage subscriptions click here:
>> http://lyris.sunbelt-software.com/read/my_forums/
>> or send an email to listmana...@lyris.sunbeltsoftware.com
>> with the body: unsubscribe ntsysadmin
>
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~   ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin


Re: IIS W2KR2 Question

2013-05-08 Thread Daniele Bartoli
There is one site in IIS.  So all google.com traffic goes to that one site
(i.e. Default Web Site).
Within that site there is a page (google.com/test) that they are trying to
associate to the other domain name (trial.google.com)
How do I do that?

On Wed, May 8, 2013 at 4:19 PM, Kurt Buff  wrote:

> Err,  my reply should read:
>
> "This is easier if google.com and trial.google.com are actually
> different sites on separate IP addresses on the IIS server..."
>
> Kurt
>
> On Wed, May 8, 2013 at 4:17 PM, Kurt Buff  wrote:
> > On Wed, May 8, 2013 at 3:13 PM, Daniele 
> wrote:
> >> Got an IIS question that I am hoping someone can help with.
> >>
> >> I am using the google domain name fictiously to illustrate the example.
> >>
> >> So I have my web server, and it has a web page at google.com.  I have
> an A record that points google.com to an IP.
> >>
> >> Then I have anoher web page on that same server that is at
> trial.google.com/test.  I have an A record that points trial.google.comto the 
> same IP as
> google.com.
> >>
> >> If I try to manually go to trial.google.com/test, all works just fine.
> >>
> >> My question is, how do I redirect traffic so that the 
> >> trial.google.comautomatically goes to
> trial.google.com/test?
> >>
> >> Meanwhile, I don't want to impact what is already working, google.com
> >
> > this is easier if google.com and trial.google.com are actually
> > separate sites on the IIS server...
> >
> > In that case, just make the test page your default for trial.google.com
> >
> > But, in this case, from dim memory, you'll need to enable host
> > headers, and you'll still want to make the test page as your default
> > page for trial.google.com
> >
> > See this article:
> > http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx
> >
> > Kurt
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~   ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe ntsysadmin
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Re: IIS W2KR2 Question

2013-05-08 Thread Kurt Buff
Err,  my reply should read:

"This is easier if google.com and trial.google.com are actually
different sites on separate IP addresses on the IIS server..."

Kurt

On Wed, May 8, 2013 at 4:17 PM, Kurt Buff  wrote:
> On Wed, May 8, 2013 at 3:13 PM, Daniele  wrote:
>> Got an IIS question that I am hoping someone can help with.
>>
>> I am using the google domain name fictiously to illustrate the example.
>>
>> So I have my web server, and it has a web page at google.com.  I have an A 
>> record that points google.com to an IP.
>>
>> Then I have anoher web page on that same server that is at 
>> trial.google.com/test.  I have an A record that points trial.google.com to 
>> the same IP as google.com.
>>
>> If I try to manually go to trial.google.com/test, all works just fine.
>>
>> My question is, how do I redirect traffic so that the trial.google.com 
>> automatically goes to trial.google.com/test?
>>
>> Meanwhile, I don't want to impact what is already working, google.com
>
> this is easier if google.com and trial.google.com are actually
> separate sites on the IIS server...
>
> In that case, just make the test page your default for trial.google.com
>
> But, in this case, from dim memory, you'll need to enable host
> headers, and you'll still want to make the test page as your default
> page for trial.google.com
>
> See this article:
> http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx
>
> Kurt

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin


Re: IIS W2KR2 Question

2013-05-08 Thread Kurt Buff
On Wed, May 8, 2013 at 3:13 PM, Daniele  wrote:
> Got an IIS question that I am hoping someone can help with.
>
> I am using the google domain name fictiously to illustrate the example.
>
> So I have my web server, and it has a web page at google.com.  I have an A 
> record that points google.com to an IP.
>
> Then I have anoher web page on that same server that is at 
> trial.google.com/test.  I have an A record that points trial.google.com to 
> the same IP as google.com.
>
> If I try to manually go to trial.google.com/test, all works just fine.
>
> My question is, how do I redirect traffic so that the trial.google.com 
> automatically goes to trial.google.com/test?
>
> Meanwhile, I don't want to impact what is already working, google.com

this is easier if google.com and trial.google.com are actually
separate sites on the IIS server...

In that case, just make the test page your default for trial.google.com

But, in this case, from dim memory, you'll need to enable host
headers, and you'll still want to make the test page as your default
page for trial.google.com

See this article:
http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx

Kurt

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin


RE: IIS W2KR2 Question

2013-05-08 Thread Ken Schaefer
There's insufficient information in your post to answer completely.

Do you have two separate websites setup in IIS? If so, then you can simply use 
any number of redirect options (IIS has inbuilt redirect functions, or you can 
use .NET, or the optional ARR module) to redirect http://trial.google.com to 
http://trial.google.com/test

What you didn't say is if you want to redirect anything else. E.g. what is 
someone requests http://trial.google.com/default.htm? DO you want to redirect 
that as well? (or just give a 404?) What about 
http://trial.google.gom/somethingelse?

Secondly, what if you don’t have a second website? You just have two DNS 
entries pointing to the one website? In that case, it's a little more work (but 
not much). You just need to specify the matching host header that the browser 
must send for the redirect to kick in.

It helps if you work through all the scenarios (use cases) first, so you have a 
set of outcomes. Then we can build a rule to match the expected outcomes.

Cheers
Ken

-Original Message-
From: Daniele [mailto:danielebart...@gmail.com] 
Sent: Thursday, 9 May 2013 8:13 AM
To: NT System Admin Issues
Subject: IIS W2KR2 Question

Got an IIS question that I am hoping someone can help with.

I am using the google domain name fictiously to illustrate the example.

So I have my web server, and it has a web page at google.com.  I have an A 
record that points google.com to an IP.
 
Then I have anoher web page on that same server that is at 
trial.google.com/test.  I have an A record that points trial.google.com to the 
same IP as google.com.
 
If I try to manually go to trial.google.com/test, all works just fine.  
 
My question is, how do I redirect traffic so that the trial.google.com 
automatically goes to trial.google.com/test?
  
Meanwhile, I don't want to impact what is already working, google.com

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

IIS W2KR2 Question

2013-05-08 Thread Daniele
Got an IIS question that I am hoping someone can help with.

I am using the google domain name fictiously to illustrate the example.

So I have my web server, and it has a web page at google.com.  I have an A 
record that points google.com to an IP.
 
Then I have anoher web page on that same server that is at 
trial.google.com/test.  I have an A record that points trial.google.com to the 
same IP as google.com.
 
If I try to manually go to trial.google.com/test, all works just fine.  
 
My question is, how do I redirect traffic so that the trial.google.com 
automatically goes to trial.google.com/test?
  
Meanwhile, I don't want to impact what is already working, google.com

Thanks,
Daniele
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin