2

My .htaccess file:

AuthType Basic

AuthName "Restricted Files"

AuthUserFile /var/www/html/public/.htpasswd

Require user test.user

If I rename the .htaccess file then the site works OK. Otherwise the Beanstalk healthcheck status goes RED, and the site returns a status of 503 (status unavailable).

What's my next step to get this working?

1
  • Ask Amazon Support. Commented Apr 2, 2012 at 17:07

1 Answer 1

3

Ryan at AWS said: "There needs to be a publicly accessible URL that Elastic Beanstalk can reach in order for the environment to stay green. This is called the health check URL, and it must return an HTTP status 200."


As a result I created a separate health check URL in a subdirectory which had the authentication turned off, and pointed the Beanstalk health check at this new URL (configure environment Load Balancer tab). The Elastic Beanstalk website is now GREEN.

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.