ich habe einen Service, welcher aktuell unter Nginx läuft. Auf Grund der Migrationen auf KeyHelp möchte ich gerne Apache nutzen.
Das Betriebssytem ist Ubuntu 18.04.4 LTS mit KeyHelp 19.3.1. Im Vorfeld habe ich die Module mod_proxy_http, mod_proxy_wstunnel, mod_headers, mod_rewrite aktiviert.
Nginx Konfiguration
Code: Select all
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://192.168.1.1:8111;
proxy_redirect off;
}
location /ws/client/websocket {
proxy_pass http://192.168.1.1:8111;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Code: Select all
<Location />
ProxyPass http://192.168.1.1:8111
ProxyPassReverse /
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://192.168.1.1:8111 [P]
</Location>
<Location /ws/client/websocket >
ProxyPass http://192.168.1.1:8111
ProxyPassReverse /
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://192.168.1.1:8111 [P]
</Location>
ProxyRequests off
Code: Select all
[15/Feb/2020:19:05:41 +0100] "POST /ws/client/createsession?requestid=809 HTTP/2.0" 502 357 "-"
[15/Feb/2020:19:07:08 +0100] "POST /ws/client/createsession?requestid=811 HTTP/2.0" 502 357 "-"
[15/Feb/2020:19:08:08 +0100] "POST /ws/client/createsession?requestid=813 HTTP/2.0" 502 357 "-"
[15/Feb/2020:19:12:26 +0100] "POST /ws/client/createsession?requestid=815 HTTP/2.0" 502 357 "-"
/Dani