Trouble with forcing https in ISPConfig 3.2

Discussion in 'Installation/Configuration' started by BryceB, Jan 8, 2021.

  1. BryceB

    BryceB New Member

    I am using ISPConfig 3.2 on Ubuntu 20.04, installed following "The Perfect Server" tutorial on this site.
    How to I get the server to force the use of https?
    All of the previous threads I can find on this subject reference options that I do not see. For instance, on https://www.howtoforge.com/community/threads/http-to-https-redirection.44209/ till says to put some redirect code that looks like it goes into an .htaccess file "in the apache directives field of the website settings", but I don't see any such field in any of the tabs for the website. I also saw someone suggest selecting "HTTP to HTTPs" in the redirect tab, but the dropdown doesn't have that as an option for me.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If you enabled SSL with a valid SSL cert (for example one obtained with Let's Encrypt) the checkbox for the http -> https redirect will show in the redirect tab.
     
  3. Olivier78

    Olivier78 New Member

    Under Web Domain > Redirect, at the very end you should have a checkbox "Rewrite HTTP to HTTPS"
     
  4. BryceB

    BryceB New Member

    I don't see the option to enable/disable SSL for the website. I did install letsencrypt as part of the installation instruction, and I assumed it was enabled automatically. I know the cert was issued and installed, because I can visit the site and see info on the cert via the browser. Is there a switch I need to flip somewhere else?
     
  5. BryceB

    BryceB New Member

    It doesn't show up for me.
    [​IMG]
     
  6. BryceB

    BryceB New Member

    As a matter of fact, when I use firefox or chrome to visit the site, I do see https for the main page. I don't know if that's just a built in to the browser sort of thing. All the requested resources from that page (css, images, etc) are requested as http://domain.whatever and the browser(s) balk at them.
     
  7. Olivier78

    Olivier78 New Member

    If you checked SSL + Let's Encrypt SSL...

    [​IMG]

    You should see this

    [​IMG]
     
  8. BryceB

    BryceB New Member

    I am not seeing all of that. Did I do something wrong, or do we have different versions?
    [​IMG]
     
  9. Olivier78

    Olivier78 New Member

    Are you logged in as an admin ? (username: admin)
    I'm only using ISPConfig version 3.1.x and 3.2.x but it should be similar.

    Which version are you using ?
     
  10. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If you are logged in as a client and didn't enable SSL / LE in the client limits, the checkboxes will not show up.
     
  11. BryceB

    BryceB New Member

    Okay, so I was logged in to the client account. When I logged in as admin I was able to enable SSL and let's encrypt in the limits tab for the client. Now those options show up in the website editing page.

    Now, however, when I turn them on (SSL, Let's encrypt) for the website (and click save), they don't stay on. The next time I visit that page, the checkboxex are back to being unchecked. I attempted to enable SSL & let's encrypt from both the admin and the client interface. I guess I need to track down what is not going right. Is there some kind of error log I could look at for that?
     
  12. BryceB

    BryceB New Member

    I found the let's encrypt log on the Monitor page, but it doesn't have any record of the domain I'm trying to set up, only the domain of the main ispconfig installation. There's nothing at all in any of the error logs, either.
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    ahrasis likes this.

Share This Page