Squirrelmail under https

Discussion in 'Server Operation' started by Hans, Apr 25, 2006.

  1. Hans

    Hans Moderator Moderator

    I have created a website called webmail.myhostingcompany.tld within ISPConfig. I installed squirrelmail 1.4.6 there.

    Everything is up and running now, but i wonder if it is possible to run this particular site (squirrelmail) under https.

    In my browser i can point to http://webmail.myhostingcompany.tld or http://www.webmail.myhostingcompany.tld but not https://webmail.myhostingcompany.tld or https://www.webmail.myhostingcompany.tld.

    I have to say that i have enabled SSL within ISPConfig for this website.
    Maybe this is a step in the right direction, but not a solution.

    Anyone knows how to?

    Hans
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. Hans

    Hans Moderator Moderator

    Thank you Falko,

    It was easy.
    I was searching on Howtoforge.com how to setup a site under https, but i did not find it. It was just in the ISPConfig manual, so i was looking too far.
    Good to know and thank you again.

    Something else:
    Is it normal that the website under https is still available under http? I do not think so. What is the reason that this is still possible?
    Is it because the website https://webmail.myhostingcompany.tld is a co-domain of http://myhostingcompany.tld which is not https?

    Hans
     
    Last edited: Apr 25, 2006
  4. falko

    falko Super Moderator Howtoforge Staff

    That'S the usual way ISPConfig configures web sites. You cannot have an SSL-only web site in ISPConfig for now. Maybe we add this feature in the future.
    But you can create an .htaccess file that redirects all requests to the non-SSL web site to the SSL-web site.
    http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
     
  5. Hans

    Hans Moderator Moderator

    Conclusion: via ISPConfig, there is a http only mode but no https only mode.
    I think the manual from Apache can be very useful right now. thanks.

    The possibility to enable a "https only mode" via ISPConfig would be nice.
    Maybe something for future releases.

    Hans
     
  6. Hans

    Hans Moderator Moderator

    https only

    In the mean time i found out that this can be done by adding the following lines within the Apache directives field of the website:

    RewriteEngine on
    RewriteCond %{SERVER_PORT} =80
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}

    :)
     

Share This Page