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
  • did you find a solution for this? Commented Apr 22, 2015 at 17:31
  • Hi @gmaniac . I've created a cloudfront distribution to forward the http to https. See: stackoverflow.com/questions/14693852/… Commented Apr 26, 2015 at 13:37

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. Commented Feb 2, 2016 at 14:48

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.