Apache DirectorySlash ignores X-Forwarded-Proto header
Posted
by
Sharique Abdullah
on Server Fault
See other posts from Server Fault
or by Sharique Abdullah
Published on 2013-10-28T21:31:20Z
Indexed on
2013/10/28
21:55 UTC
Read the original article
Hit count: 456
It seems that Apache's DirectorySlash directive is causing issues when using it behind Amazon ELB on HTTPS protocol.
So say I access a URL:
https://myserver.com/svn/MyProject
it would redirect me to:
http://myserver.com/svn/MyProject/
My ELB configuration forwards port 443 to port 80 on Apache, but Apache should be aware of the X-Forwarded-Porto header in the request and thus keep the protocol as https in the redirect URL too.
Any thoughts?
© Server Fault or respective owner