Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Ask Amazon Support. – Tom O'Connor Apr 2 '12 at 17:07

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.