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

mollysocket: add apache configuration to transfer X-Original-URL #66

Open
lada04 opened this issue Jan 3, 2025 · 2 comments
Open

mollysocket: add apache configuration to transfer X-Original-URL #66

lada04 opened this issue Jan 3, 2025 · 2 comments

Comments

@lada04
Copy link

lada04 commented Jan 3, 2025

I'd suggest to add an example to document the apache configuration for the reverse proxy in case mollysocket is not listening on the webroot:

RequestHeader set X-Original-URL "expr=%{THE_REQUEST}"
RequestHeader edit* X-Original-URL ^[A-Z]+\s|\sHTTP/1\.\d$ ""

ProxyPreserveHost On

ProxyPass "/molly"  "http://127.0.0.1:8020"
ProxyPassReverse "/molly"  "http://127.0.0.1:8020"

It took me awhile to figure this out. Credits

@p1gp1g
Copy link
Member

p1gp1g commented Jan 3, 2025

Why not hardcoding the path ? RequestHeader set X-Original-URL /molly

@p1gp1g
Copy link
Member

p1gp1g commented Jan 4, 2025

If you want to open a PR with a sample of apache config, you're welcome to !

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

No branches or pull requests

2 participants