Sample Header Ad - 728x90

Rocket chat enable ssl in apache

1 vote
0 answers
596 views
I have installed rocket chat on docker - on Debian 9 OS. I am unable to enable https for the same. I can access it using fqdn - http://chat.xyz.com:3003 I have generated ssl certificates using certbot. I am using below configuration in apache: https://docs.rocket.chat/installation/manual-installation/configuring-ssl-reverse-proxy
ServerAdmin it@xyz.com
    ServerName chat.xyz.com

    LogLevel info
    ErrorLog /var/log/chat.xyz.com_error.log
    TransferLog /var/log/chat.xyz.com_access.log

    SSLEngine On
    SSLCertificateFile /etc/ssl/certs/cloud-no.com.crt
    SSLCertificateKeyFile /etc/ssl/private/cloud-no.com.key

    
        Require all granted
    

    RewriteEngine On
    RewriteCond %{HTTP:Upgrade} =websocket [NC]
    RewriteRule /(.*)           ws://localhost:3003/$1 [P,L]
    RewriteCond %{HTTP:Upgrade} !=websocket [NC]
    RewriteRule /(.*)           http://localhost:3003/$1 [P,L]

    ProxyPassReverse /          http://localhost:3003/
I have also enabled necessary modules in apache - proxy_http, proxy_wstunnel, etc I have referred and tried many sites/guides before posting here. Please help me.
Asked by Aryan Singh (11 rep)
Jun 23, 2020, 04:14 AM