emikulic / darkhttpd

When you need a web server in a hurry.
https://unix4lyfe.org/darkhttpd/
ISC License
1.05k stars 87 forks source link

Forward to HTTPS if X-Forwarded-Proto is "http" #12

Closed FragmentedCurve closed 3 years ago

FragmentedCurve commented 3 years ago

Forward to HTTPS if X-Forwarded-Proto is equal to "http". This can be enabled with "--forward-https".

This might be useful if darkhttpd is behind a reverse proxy that supports SSL.

FragmentedCurve commented 3 years ago

This is a patch I hacked out a few years ago. I prematurely created this PR. I'm closing it to fix issues that were acceptable for my purposes at the time but not acceptable if I'm attempting to push this upstream.

I'll be back.