Apache

Vhosts authentication fragments

I know this is beyond simple, but sometimes it's nice to have a copy paste resource for setting up a vhost password protected site.

  1. AuthName "Restricted Area"
  2. AuthType Basic
  3. AuthUserFile /var/www/vhosts/{site}/security/.htpasswd
  4. AuthGroupFile /dev/null
  5. require valid-user
Tags: 
Subscribe to RSS - Apache