Hallo!
Ich habe folgendes Problem: Ich habe mir auf einer Ubuntu 18.04 VM (gehostet in AWS) einen Rocket.Chat Server aufgesetzt. Als Webserver nutze ich Apache. Ich habe den Server mit einem self signed SSL Zertifikat konfiguriert und wenn ich https://public.DNS.name aufrufe, kommt auch die Apache default page.
Die Rocket.Chat Anwendung läuft über Port 3000 und ich wollte nun mittels Reverse Proxy Settings diesen Port über SSL leiten, um eine verschlüsselte Kommunikation zu haben, aber es klappt einfach nicht. Mein Apache config file sieht im Moment so aus:
<VirtualHost *:443> ServerAdmin email@address.eu ServerName blablabla.compute.amazonaws.com ServerAlias blublubb ProxyPreserveHost on SSLProxyEngine On ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ RewriteEngine On RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteRule /(.*) ws://localhost:3000/$1 [P,L] RewriteCond %{HTTO:Upgrade} !=websocket [NC] RewruteRule /(.*) http://localhost:3000/$1 [P,L] SSLEngine on SSLCertificateFile /path/to/file.crt SSLCertificateKeyFile /path/to/file.key </VirtualHost>
Über http://public.DNS.name:3000 ist die Anwendung erreichbar und https://public.DNS.name liefert wie gesagt die Apache Default Page, aber die Anwendung auf Port 3000 über SSL will einfach nicht klappen.
Freue mich über jeden Input!
Vielen Dank! LG mkolb