title: Password Protect My Website
body: <p>I have recently created a new Amazon EC2 instance using Amazon Linux AMI. What is the best way to force a user accessing the domain to enter a username/password before allowing access to the site?</p>
  
  <p>I am currently using apache http server, and saw some resources indicating I need to use a .htaccess file, but was looking for a more concise explanation.</p>