Title: RE: [imail] Imail URL
We implemented this in ASP, but I'm sure it should be translatable into .cgi or other scripts, depending on your platform. This code is at the start of the default page served up by the web server (usually index.asp or default.asp, whichever your server uses):
 
   hName = Request.ServerVariables("SERVER_NAME")
   host = left(hName,InStr(1,hName,".") - 1)
 
You may have to include additional processing if you have people accessing your web site using other means of naming (i.e., hosts files that map "server" to your IP address which will just return "server" as SERVER_NAME, causing the left(...) function to fail). If you play around with the different ways people access your server and the string parsing functions in ASP, you should be able to accommodate every situation. Then just inspect the value of host and redirect accordingly.
 
Glad to help,
Jim
-----Original Message-----
From: nasir ahmed [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 2:03 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [imail] Imail URL

Any such scripts?
Nas

-----Original Message-----
From: Jim Fennell [mailto:[EMAIL PROTECTED]]
Sent: 12 January 2001 18:14
To: [EMAIL PROTECTED]
Subject: RE: [imail] Imail URL


You could also take it one step further and use a script on the site's
default page to parse the requested url to see if it was "mail.domain.com"
and only redirect to domain.com:8383 then. That would also allow you to
redirect to your standard web content, and serve both from domain.com if you
wanted to.

Peace,

Jim Fennell
Web Development Manager
NuEworld
http://www.nueworld.com
888-926-1975

--- nasir ahmed <[EMAIL PROTECTED]> wrote:
>The way I've gone about it is to put in a simple Meta Refresh to refresh to
>domain.com:8383
>
>Seems to work well, don't know if it's the best way though...
>Nasir


--- nasir ahmed <[EMAIL PROTECTED]> wrote:
> This may be a silly question but does anyone know
> how to configure an IIS
> server so that you don't have to type
> www.domain.com:8383 to go to webmail
> but just www.domain.com
> Thanks in Advance
> Nasir
>




______________________________________________________________________
The HKSI-IMail Admin List is hosted by........ Humankind Systems, Inc.
Questions, Comments or Glowing Praise...... mailto:[EMAIL PROTECTED]
Searchable List Archive.... http://www.mail-archive.com/[email protected]
To Manage your Subscription......... http://humankindsystems.com/lists

Reply via email to