We are using Fop2 on multiple servers on http but now want to use a SSL Cert for it. We have been using SSL Certs on our PBX for years but not for Fop2 as its never worked.
How is your webserver configured to serve the (presumably /var/www/html/fop2) directory ?
You will need to know the port and it’s relative location with respect to the ‘webroot’ , these data these are likely sonewhere in /etc/httpd/sites-enabled/*
If debian based then probably look in /etc/apache2/sites-enabled/* but that is purely a convention and would depend on how the webserver was installed, a blunt search for a tell-tail words here
grep -r fop2 /etc/httpd/
(Edit; you are using apache2 aliased as httpd on a redhat based system so everything will be in /etc/httpd/*)
I expect https to be on 443 and I would hope that 80 is re-written to 443 with a 301, , other than that It has always worked for me, do your log files (error and access) show connections connecting to https:nnn:/10000 at all? what are the 4nn error codes when they fail
With this config what i have done is you can access fop2 with port 80 and 443 and also i secure fop2 admin interface to allow only from specific ip and freepbx admin interface with port 882 with https or with port 8080 without https so go to Freepbx Port Management change Admin port to 8080 than go to /etc/httpd/conf/httpd.conf and add this:
<Files index.php>
Order deny,allow
Deny from all
Allow from x.x.x.x (IP ADDRESS TO ALLOW TO ADMIN INTERFACE ONLY)
</Files>
SSLEngine on
SSLCertificateFile /etc/ssl/yourssl.crt
SSLCertificateKeyFile /etc/ssl/yourssl.key
<Files index.php>
Order deny,allow
Deny from all
Allow from x.x.x.x (IP ADDRESS TO ALLOW TO ADMIN INTERFACE ONLY)
</Files>
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R=301,L]
Dont forget to restart apache.
And keep in mind that if you restore a backup, the freepbx will comment the Listen Ports to something like this #Listen 80 #Listen 882 but you just remove the comment and restart apache.