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 AccessWe 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
