There's a much simpler way that we use:
 
www.domain.com is your primary webserver running IIS and you wish to have mail.domain.com goto the IMail web interface without specifying port 8383 in the URL, but keeping the IMail web server running on port 8383 to avoid interference.
 
Simply add mail.domain.com as a subdomain in your DNS server, then add a virtual domain website in IIS with host headers set to mail.domain.com.
Then, in the properties for the home directory, instead of pointing to a virtual directory path, select "permanent" redirect and enter www.domain.com:8383 as the
target.
 
This is much easier than hacking in some ASP code, and the permanent redirect will generate a meta header that is cache engine and browser friendly.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Scott R. Chrestman
Sent: Tuesday, May 25, 1999 9:30 PM
To: [EMAIL PROTECTED]
Subject: RE: [IMail Forum] Web Based Mail Access

I will assume that you are using IIS 3 or 4 to serve up the web site, and that there is ONE IP address, with two aliases, mail.domain.com and www.domain.com.
 
Your default page will need to be renamed to 'default.asp'.  AT THE VERY TOP OF BEFORE <HTML> ADD:
 
<%
    If ucase(Request.ServerVariables("SERVER_NAME")) = "MAIL.DOMAIN.COM" Then
        Response.Redirect(http://mail.domain.com:8383)
    End If
%>
 
Ok, here's what we just did...  SERVER_NAME will default to whatever is on the URL bar.  If its mail. it will return mail..  So, we do an if test.  We convert the whole thing to uppercase because you never know what case a user will actually use.  We test it to see if they are wanting mail.domain.com, and if they are, respond with a redirect telling the browser to go to the same server, but on port 8383.  If they type in www.domain.com, it will not fall into the If condition, and will continue to load the public web site as usual.
 
If you are using any other web server than IIS, let me know, and I'll hack out a Perl script to do the same thing.  If you have any problems, feel free to e-mail me directly.

Scott R. Chrestman
Vice President
Netropolis Communications Corp.
E-Mail: [EMAIL PROTECTED]
http://www.netropolis.net

 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Richard L.
Sent: Monday, May 24, 1999 7:26 PM
To: [EMAIL PROTECTED]
Subject: [IMail Forum] Web Based Mail Access

We currently have a server that we want to run a website and Imail services, especially the Web Based Email service.  We got the email service setup and working correctly through POP access.  But here is the trick.  How do we make the server go to mail.serveraddress.com go to mail.serveraddress.com without having to type in the :8383 at the end.  Is it in the DNS server that we do this or what? 
 
NT Server 4.0 Service Pack 3
 
 

Reply via email to