Project

General

Profile

How to force SSL if lighttpd is behind an AWS ELB.

Added by MetaYii about 10 years ago

Hi, I have an AWS ELB with 2 listeners, one for TCP 80 and one for TCP 443, both forwarding to lighttpd's in port 80 (SSL cert is in the ELB). How could I force HTTPS?

Thanks for any help.

Note, this recipe doesn't work for the use case:

http://redmine.lighttpd.net/projects/1/wiki/HowToRedirectHttpToHttps


Replies (1)

RE: How to force SSL if lighttpd is behind an AWS ELB. - Added by MetaYii about 10 years ago

Does $HTTP['scheme'] contain the value for x-forwarded-proto?

    (1-1/1)