ispconfig behind pfsense haproxy and wordpress

Discussion in 'Installation/Configuration' started by rajbps, Mar 16, 2025.

  1. rajbps

    rajbps Member

    Hi Team,

    i have ispconfig installed behind pfsense with haproxy. I have some websites on ispconfig on http and the work fine to the external web. I am trying to setup a new website wordpress with https but it would not work. I have enable ssl on the domain section of that actual website and then went to ssl and added the ssl certificate and the ssl bundle and as action selected save. I even tried to point the website directly using the hostfile in windows as 192.168.0.1 (ipconfig ip) mydomain.com and then tried to get to the site but no joy. Has anyone tried to get this to work before and am I missing anything else please?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you add the key also? You said you just added SSL bundle and SSL cert, but you must add a key too for SSL on the SSL tab of the website. Also, you did not mention what the error is that you get when accessing the site with https.
     
  3. lano

    lano Member

    Create 3 backends with ports 443, 80 and 8080 which points to your server behind the NAT (443 for https, 80 for Letsencrypt and 8080 for administration). Then create 3 frontends with Expression "Server Name Indication TLS extension matches:" and value "yourdomain.com"
    External address "WAN address (ipv4) and port (443 for example).
    Create appropriate ACL's for the backends.
    Don't forget to configure firewall.
    That way you can use Ispconfig's Letsencrypt function for https. For each new ISPC website, just add ACL's in HAproxy frontend.
     
  4. rajbps

    rajbps Member

    just in case if anyone else has this issue. changing in the front end of HAproxy to Expression "Server Name Indication TLS extension matches:" solved the issue.

    I did add the key but forgot to mention it :)
     

Share This Page