Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member danimal's Avatar
    Join Date
    Jul 2003
    Posts
    79

    Default secure and non-secure access to webmail through the same URL?

    I've done some digging but haven't found this exact question/scenario, so...

    I want to be able to have certain clients able to go to: https://clientdomain.com/webmail/ and have that redirect to the secure version (2096). I don't want to set this system-wide, though, because as near as I understand it, it just makes http://whatever.com/webmail/ redirect to https://whatever.com:2096/ (from the Tweak Settings)

    I want my clients to be able to either do:
    http://clientdomain.com/webmail/ -> use 2095 (insecure)
    https://clientdomain.com/webmail/ -> use 2096 (secure)

    I suspect that I can't just do this by hacking /usr/local/cpanel/cgi-sys/ scripts, nor with .htaccess rewrite magic. I suspect I need to set up an SSL cert for the client and then do some redirect.

    But I'm hoping I'm wrong. Is there an easy way someone can suggest to make this happen?

    What I don't want is to force system-wide the http -> https for webmail.

    Actually, I'd like this to be a general system setting, but not like the Tweak Settings option. That is to say, I'd like to have some general setting that says if "/webmail" is called, check the "http vs https" and redirect accordingly. It seems that /usr/local/cpanel/cgi-sys/wredirect.cgi should already do this, but it doesn't. I.e. going to "https://clientdomain.com/webmail/" just gives a browser failure ("connection terminated unexpectedly").

    I can do a php or htaccess redirect for something like:
    http://clientdomain.com/swebmail/ -> https://clientdomain.com:2096/

    But I really like the elegance of the same URL but with http for insecure (2095) and https for secure (2096). It seems nice and neat to me.

    Thoughts?

    Thanks!

    -Danimal
    Last edited by danimal; 08-21-2006 at 12:31 PM.

  2. #2
    Member danimal's Avatar
    Join Date
    Jul 2003
    Posts
    79

    Default And as a followup:

    If my client wants it, is there a way to have the following redirect set up on a per-account basis (not server-wide!):

    http://clientdomain.com/webmail -> https://clientdomain.com:2096/

    Thanks!

    -Danimal

Similar Threads & Tags
Similar threads

  1. SSL being installed on www.secure.* instead of secure.*
    By markjohnson in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-19-2011, 11:24 AM
  2. How to secure a URL using cPanel?
    By cpJack in forum New User Questions
    Replies: 1
    Last Post: 03-20-2009, 09:38 PM
  3. cPanel 11 Secure URL Bug
    By Salman75 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-12-2007, 11:39 PM
  4. Secure URL (SSL) Not Working...
    By Jasio in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-26-2004, 01:04 PM
  5. Modifying Secure URL In Interchange
    By Curious Too in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-24-2001, 07:47 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube