In case someone else has wanted to change port 443 assignment to the UCP in FreePBX version 12, here is what I did:
Add the line
DocumentRoot /var/www/html/ucp/
to ssl.conf (located in /etc/httpd/conf.d/). Here is what it should look like:
# SYSADMIN - File auto-generated by Sysadmin
# Any changes you make to this file will be overwritten.
LoadModule ssl_module modules/mod_ssl.so
Listen 443
SSLPassPhraseDialog builtin
SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout 300
SSLMutex default
SSLRandomSeed startup file:/dev/urandom 256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
<VirtualHost _default_:443>
ServerName your.server.com:443
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
# This is taken from https://cipherli.st, March 2015. We explicitly don't support
# older browser versions, so we explicitly don't cater to their https requirements.
SSLCipherSuite AES128+EECDH:AES128+EDH
SSLCertificateFile /etc/httpd/pki/webserver.crt
SSLCertificateKeyFile /etc/httpd/pki/webserver.key
SSLCACertificateFile /etc/httpd/pki/selfsignedca.crt
SetEnvIf User-Agent '.*MSIE.*' nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
DocumentRoot /var/www/html/ucp/
</VirtualHost>
The comment at the top of the file says it will be overwritten by the Sysadmin module. I don’t know specifically what action would trigger this file to be overwritten. Perhaps someone else could comment on this.