Apache DirectorySlash ignores X-Forwarded-Proto header
- by Sharique Abdullah
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?