Skip to content

snapdrop instance behind Apache Proxy: How to implement X-Forwarded-For #516

Description

@Tone866

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions