How would i be able to have a custom login page depending on which domain the user is coming from?
Ehhh?
Because lets say I virtually host multiple domains, And i want the mail.customersdomain.com to pull their own logo.
???
Any suggestions?
Custom Login Page Per Domain?
how about forcing the skin to the domain of the user...setting the session variable for the skin in the login.asp script...
remove all the code that allows the user to select the skin and the code that sets a cookie for the skin.
create a skin folder for each (sub)domain...such as mail.customersdomain.com, mail.customersdomain2.com...mail.customersdomainN.com.
this is only an informal suggestion-i did not test this idea--please excuse my manners...if you are not comfortable or so rudely did not learn asp let me know and i will walk you thru it without a f@#$ing arrogant attitude
Code: Select all
session("skin") = "/mewebmail/base/default/skins/" & Request.ServerVariables("SERVER_NAME") & "/"
create a skin folder for each (sub)domain...such as mail.customersdomain.com, mail.customersdomain2.com...mail.customersdomainN.com.
this is only an informal suggestion-i did not test this idea--please excuse my manners...if you are not comfortable or so rudely did not learn asp let me know and i will walk you thru it without a f@#$ing arrogant attitude
Thanks for your help
Thanks for you help. That is the first flame I have gotten for asking a question.. LOL
Anyways, I was thinking if you could get mail enable to use dns to check to see what domain is accessing the mail server, it could go to a custom page for them. I am learning asp, but again, I am a newbie at asp. If anybody has done this, can they help me.
Anyways, I was thinking if you could get mail enable to use dns to check to see what domain is accessing the mail server, it could go to a custom page for them. I am learning asp, but again, I am a newbie at asp. If anybody has done this, can they help me.
too bad it was a lame flame for your first
this is how you might go about coding what you are asking for...in the default.asp page...
the Request.ServerVariables("SERVER_NAME") returns the dns... Server.Transfer("customersdomain1.com.asp") will redirect to the specified page(iis5.0), use response.redirect("customersdomain1.com.asp") for iis < v5.0
good luck.
this is how you might go about coding what you are asking for...in the default.asp page...
Code: Select all
Select Case Request.ServerVariables("SERVER_NAME")
Case "mail.customersdomain1.com"
Server.Transfer("customersdomain1.com.asp")
Case "mail.customersdomain2.com"
Server.Transfer("customersdomain2.com.asp")
Case "mail.customersdomain3.com"
Server.Transfer("customersdomain3.com.asp")
Case Else
Server.Transfer("error.asp")
End Select
good luck.
I found a way to do it... but i will look into your way also
The way I found to do it, was to replicate the folder structure of the mail enable website as the secondary website.
I then copied login.asp and made a login2.asp (With the custom login prompt)
Also, I copied Default.asp and Made another one called default2.asp (These are just examples)
Then, In Internet Information Services, I made the secondary website (The Second Domain) Point to default2.asp, which then loads login2.asp (Which is the custom domain)
The only thing extra that the second domain needs, is a virtual site under it, replicating MEWEBMAIL directory of the first site (So it can find its files)
I can create a walkthrough visually if anybody wants it
It was fun learning it
I then copied login.asp and made a login2.asp (With the custom login prompt)
Also, I copied Default.asp and Made another one called default2.asp (These are just examples)
Then, In Internet Information Services, I made the secondary website (The Second Domain) Point to default2.asp, which then loads login2.asp (Which is the custom domain)
The only thing extra that the second domain needs, is a virtual site under it, replicating MEWEBMAIL directory of the first site (So it can find its files)
I can create a walkthrough visually if anybody wants it
It was fun learning it