Skip to content

Apache proxy configuration

maksis edited this page Apr 18, 2020 · 1 revision

Apache site configuration:

    <Location /airdcpp>
            RewriteEngine On

            RequestHeader unset Authorization

            RewriteCond %{HTTP:Upgrade} =websocket

            RewriteRule /airdcpp/(.*) ws://localhost:5600/$1 [P,L]

            RewriteCond %{HTTP:Upgrade} !=websocket

            RewriteRule /airdcpp/(.*) http://localhost:5600/$1 [P,L]

            ProxyPassReverse http://localhost:5600/

    </Location>