Squirrelmail under https

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

  1. Hans

    Hans Moderator ISPConfig Developer

    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?

  2. falko

    falko Super Moderator ISPConfig Developer

  3. Hans

    Hans Moderator ISPConfig Developer

    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?

    Last edited: Apr 25, 2006
  4. falko

    falko Super Moderator ISPConfig Developer

    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.
  5. Hans

    Hans Moderator ISPConfig Developer

    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.

  6. Hans

    Hans Moderator ISPConfig Developer

    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