1

Is there a way to use the custom environment property of elastic beanstalk in htaccess? I only want to rewrite http to https when not running locally so I thought I could do this by using the environment property of elastic beanstalk as a condition.

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule !/status https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
2

1 Answer 1

-3

You can find the solution at below link for similar problem:

https://stackoverflow.com/questions/21878024/configure-apache-on-elastic-beanstalk

1
  • 1
    You might want to copy (some off) the actual details into your post. Because if that link ever breaks then your answer becomes useless.
    – Hennes
    Feb 2, 2016 at 14:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .