Heya,

SBS 2003 Standard
Using OWA (Exchange SP2)
SSL Certificate for webmail.companyname.com with Alternative
remote.companyname.com

webmail.companyname.com for Exchange
remote.companyname.com for Remote Desktop / Remote Workspace page.

I have done the following:

Enabled Forms based Authentication
Install SSL ceritficate at Default Site, forced 128bit
Set Permissiosn on all root files to deny unless on local network.

Created redirect.asp file that does the following (so far it does work)

<%=Request.ServerVariables("HTTP_HOST")%>
<%=Request.ServerVariables("SERVER_NAME")%>
<%
Dim strSecureURL
If Request.ServerVariables("HTTP_HOST")="webmail.companyname.com" Then
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & "/exchange"
Response.Redirect strSecureURL

ElseIf Request.ServerVariables("HTTP_HOST")="remote.companyname.com" Then
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & "/remote"
Response.Redirect strSecureURL

Else
Response.Redirect("http://companyweb")


End If
%>


I aslo created a DNS Zone for webmail.companyname.com > this works fantastic.

The challenge now, people are so use to typing http://servername/exchange or
https://servername/exchange. Of course, this comes up with a certificate
error because it is not part of the certificate. I originally thought about
Wildcard domain names, but decided against because of cost mostly.

I can't find a method of redirecting to https://webmail.companyname.com if
they use the http://servername/exchange.

I thought I could do it within the original asp file, buy using something like
If Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("URL") =
"servername/exchange" then

But this doesn't seem to work.

I thought, if I could place or edit a file in the /exchange portion of the
site that basically confirms it was accessed by webmail.companyname.com or
otherwise redirects to the that host header.

It must be something simple I'm not doing.

Any thoughts,

Chris

Re: OWA Redirect - almost got it by Cliff

Cliff
Fri Jul 11 12:53:07 PDT 2008

Sadly it isn't something simple. If you want to use two certificates (a
webmail. and remote.) you have to host two sites to assign each certificate
to one. You can't just redirect to the default site. That means manually
creating the OWA directories on the OWA site, etc. I've done it, but it is
not simple, and requies diligence in backups and maintenance.

-Cliff

"Chris" <Chris@discussions.microsoft.com> wrote in message
news:DC030566-90F3-4478-8E5C-143740C87CF6@microsoft.com...
> Heya,
>
> SBS 2003 Standard
> Using OWA (Exchange SP2)
> SSL Certificate for webmail.companyname.com with Alternative
> remote.companyname.com
>
> webmail.companyname.com for Exchange
> remote.companyname.com for Remote Desktop / Remote Workspace page.
>
> I have done the following:
>
> Enabled Forms based Authentication
> Install SSL ceritficate at Default Site, forced 128bit
> Set Permissiosn on all root files to deny unless on local network.
>
> Created redirect.asp file that does the following (so far it does work)
>
> <%=Request.ServerVariables("HTTP_HOST")%>
> <%=Request.ServerVariables("SERVER_NAME")%>
> <%
> Dim strSecureURL
> If Request.ServerVariables("HTTP_HOST")="webmail.companyname.com" Then
> strSecureURL = "https://"
> strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
> strSecureURL = strSecureURL & "/exchange"
> Response.Redirect strSecureURL
>
> ElseIf Request.ServerVariables("HTTP_HOST")="remote.companyname.com" Then
> strSecureURL = "https://"
> strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
> strSecureURL = strSecureURL & "/remote"
> Response.Redirect strSecureURL
>
> Else
> Response.Redirect("http://companyweb")
>
>
> End If
> %>
>
>
> I aslo created a DNS Zone for webmail.companyname.com > this works
> fantastic.
>
> The challenge now, people are so use to typing http://servername/exchange
> or
> https://servername/exchange. Of course, this comes up with a certificate
> error because it is not part of the certificate. I originally thought
> about
> Wildcard domain names, but decided against because of cost mostly.
>
> I can't find a method of redirecting to https://webmail.companyname.com if
> they use the http://servername/exchange.
>
> I thought I could do it within the original asp file, buy using something
> like
> If Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("URL")
> =
> "servername/exchange" then
>
> But this doesn't seem to work.
>
> I thought, if I could place or edit a file in the /exchange portion of the
> site that basically confirms it was accessed by webmail.companyname.com or
> otherwise redirects to the that host header.
>
> It must be something simple I'm not doing.
>
> Any thoughts,
>
> Chris


Re: OWA Redirect - almost got it by Chris

Chris
Mon Jul 14 06:32:01 PDT 2008

Hey Cliff,

First thank you for your reply. I understand what your saying - ideally it
would've been nice to actually install these as seperate sites - but it
didn't get done that way :(

However, my script works great for redirecting based on the host headers
"webmail.domain.com" and "remote.domain.com" - It hasn't caused any problems
to date.

Just trying to see if I can test for the internal mapping because my
certificate is based on the domainname .com and not domainname.local or
servername.

So, test and redirect https://myservername/exchange to
webmail.domainname.com - given that webmail.domainname.com does have an entry
on the local DNS and external DNS.

Cheers,
Chris

"Cliff Galiher" wrote:

> Sadly it isn't something simple. If you want to use two certificates (a
> webmail. and remote.) you have to host two sites to assign each certificate
> to one. You can't just redirect to the default site. That means manually
> creating the OWA directories on the OWA site, etc. I've done it, but it is
> not simple, and requies diligence in backups and maintenance.
>
> -Cliff
>
> "Chris" <Chris@discussions.microsoft.com> wrote in message
> news:DC030566-90F3-4478-8E5C-143740C87CF6@microsoft.com...
> > Heya,
> >
> > SBS 2003 Standard
> > Using OWA (Exchange SP2)
> > SSL Certificate for webmail.companyname.com with Alternative
> > remote.companyname.com
> >
> > webmail.companyname.com for Exchange
> > remote.companyname.com for Remote Desktop / Remote Workspace page.
> >
> > I have done the following:
> >
> > Enabled Forms based Authentication
> > Install SSL ceritficate at Default Site, forced 128bit
> > Set Permissiosn on all root files to deny unless on local network.
> >
> > Created redirect.asp file that does the following (so far it does work)
> >
> > <%=Request.ServerVariables("HTTP_HOST")%>
> > <%=Request.ServerVariables("SERVER_NAME")%>
> > <%
> > Dim strSecureURL
> > If Request.ServerVariables("HTTP_HOST")="webmail.companyname.com" Then
> > strSecureURL = "https://"
> > strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
> > strSecureURL = strSecureURL & "/exchange"
> > Response.Redirect strSecureURL
> >
> > ElseIf Request.ServerVariables("HTTP_HOST")="remote.companyname.com" Then
> > strSecureURL = "https://"
> > strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
> > strSecureURL = strSecureURL & "/remote"
> > Response.Redirect strSecureURL
> >
> > Else
> > Response.Redirect("http://companyweb")
> >
> >
> > End If
> > %>
> >
> >
> > I aslo created a DNS Zone for webmail.companyname.com > this works
> > fantastic.
> >
> > The challenge now, people are so use to typing http://servername/exchange
> > or
> > https://servername/exchange. Of course, this comes up with a certificate
> > error because it is not part of the certificate. I originally thought
> > about
> > Wildcard domain names, but decided against because of cost mostly.
> >
> > I can't find a method of redirecting to https://webmail.companyname.com if
> > they use the http://servername/exchange.
> >
> > I thought I could do it within the original asp file, buy using something
> > like
> > If Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("URL")
> > =
> > "servername/exchange" then
> >
> > But this doesn't seem to work.
> >
> > I thought, if I could place or edit a file in the /exchange portion of the
> > site that basically confirms it was accessed by webmail.companyname.com or
> > otherwise redirects to the that host header.
> >
> > It must be something simple I'm not doing.
> >
> > Any thoughts,
> >
> > Chris
>