Unifi Controller Apache proxy

<VirtualHost $HOSTNAME:$PORT>
    ServerName $SERVER_NAME
    ProxyPass "/wss/" "wss://127.0.0.1:8443/wss/"
    ProxyPassReverse "/wss/" "wss://127.0.0.1:8443/wss/"
    ProxyPass "/" "https://127.0.0.1:8443/"
    ProxyPassReverse "/" "https://127.0.0.1:8443/"
    ProxyPreserveHost On
    SSLProxyEngine on
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLEngine on
    SSLCertificateFile $CERT_FILE
    SSLCertificateKeyFile $CERT_KEY
    ErrorLog ${APACHE_LOG_DIR}/$ERROR_LOG_NAME
    CustomLog ${APACHE_LOG_DIR}/$ACCESS_LOG_NAME combined
</VirtualHost>


Revision #1
Created Tue, Sep 22, 2020 8:12 PM by Wesley
Updated Wed, Sep 23, 2020 5:49 PM by Wesley