Apache config: unifi.example.com.conf: ``` ServerName unifi.example.com Redirect permanent / https://unifi.example.com/ ProxyPass http://127.0.0.1:8080/inform ProxyPassReverse http://127.0.0.1:8080/inform Include sites-available/unifi.example.com.include SSLEngine on SSLCertificateFile /etc/ssl/private/unifi.example.com.crt SSLCertificateKeyFile /etc/ssl/private/unifi.example.com.key SSLCertificateChainFile /etc/ssl/private/unifi.example.com-chain.crt Include sites-available/unifi.example.com.include ProxyPass http://127.0.0.1:8080/inform ProxyPassReverse http://127.0.0.1:8080/inform ``` unifi.example.com.include: ``` ServerName unifi.example.com ServerAlias unifi.example.com ProxyPreserveHost On ProxyRequests off ProxyPass /wss wss://127.0.0.1:8443/wss retry=0 ProxyPassReverse /wss wss://127.0.0.1:8443/wss ProxyPass / https://127.0.0.1:8443/ ProxyPassReverse / https://127.0.0.1:8443/ SSLProxyVerify none SSLProxyCheckPeerName off SSLProxyCheckPeerCN off SSLProxyCheckPeerExpire off ```