Reverse Proxy zu cloudbolt

From
Jump to: navigation, search
<VirtualHost 141.73.78.143:443>
        SSLEngine on
        SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP

        SSLCertificateFile      /etc/ssl/19-03-12_vipaas-stage.siemens.com.cer
        SSLCertificateKeyFile   /etc/ssl/19-03-12_vipaas-stage-server.key

        ServerName      "dekher3pr301.de008.siemens.net"
        DocumentRoot    "/var/www/html/"

        CustomLog       "/var/log/apache2/one-access.log" combined
        ErrorLog        "/var/log/apache2/one-error.log"


        SSLProxyEngine On
        SSLProxyVerify none
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyCheckPeerExpire off

#       RequestHeader set X-Forwarded-Proto "https"
#       ProxyPreserveHost on

#       ProxyPass "/"  "https://141.73.210.41/"
#       ProxyPassReverse "/"  "https://141.73.210.41/"

        #Websocket connection
#       ProxyPass /websocket-proxy wss://141.73.210.41/websocket-proxy retry=3
#       ProxyPassReverse /websock-proxy wss://141.73.210.41/websocket-proxy retry=3



    RewriteEngine on
    RewriteCond %{HTTP:Upgrade} websocket [NC]
    RewriteCond %{HTTP:Connection} upgrade [NC]
    RewriteRule .* "wss://141.73.210.41%{REQUEST_URI}" [P]
    ProxyPass / https://141.73.210.41/
    ProxyPassReverse / https://141.73.210.41/
    ProxyRequests off


</VirtualHost>