Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BehindProxy filter #41

Merged
merged 1 commit into from
Jun 14, 2021
Merged

Add BehindProxy filter #41

merged 1 commit into from
Jun 14, 2021

Conversation

thekid
Copy link
Member

@thekid thekid commented May 30, 2018

Rewrite request URI if behind a reverse proxy

On Apache:

<VirtualHost service.example.com:443>
  ProxyPass / http://service.example-backend.lan:8080/
</VirtualHost>

In your service:

$filter= new BehindProxy(['https://service.example.com/' => '/']);

See also #40 - especially the research and discussion as to why relying on a complicated mix of X-Forwarded-* headers and a trusted proxy list seems to be total overkill; hence this simpler solution.

@thekid thekid merged commit 9b994eb into master Jun 14, 2021
@thekid thekid deleted the refactor/behind-proxy-base branch June 14, 2021 17:57
@thekid
Copy link
Member Author

thekid commented Sep 26, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant