I'm trying to run snapdrop behind a apache reverse proxy.
Everything works, except that I can see every hosts instead only that one in my network.
I don't know how I can implement the X-Forwarded-For part with apache.
I googled a bit but nothing works.
Can anyone help?
This is my current config:
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /snapdrop/(.*) ws://localhost:8080/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /snapdrop/(.*) http://localhost:8080/$1 [P,L]
ProxyPass /snapdrop/ http://localhost:8080/
ProxyPassReverse /snapdrop/ http://localhost:8080/
ProxyPass /snapdrop/ ws://localhost:8080/
<Proxy https://localhost:8080/>
AllowOverride None
Order allow,deny
Allow from all
</Proxy>
I'm trying to run snapdrop behind a apache reverse proxy.
Everything works, except that I can see every hosts instead only that one in my network.
I don't know how I can implement the X-Forwarded-For part with apache.
I googled a bit but nothing works.
Can anyone help?
This is my current config: