Password Protect Virtual Pages?

Discussion in 'Server Operation' started by BorderAmigos, Apr 14, 2010.

  1. BorderAmigos

    BorderAmigos New Member

    I am using a couple of virtual pages set by location directives in the apache directives box of ISPConfig 3. For example mod_cband's cband-status page. Is there a way to password protect these pages similar to the .htaccess and .htpasswd method? The link to the pages is administrator only in Drupal which gives some security.
  2. BorderAmigos

    BorderAmigos New Member

    Found the answer on the Apache site. Just put the directives inside the location tags instead of in an .htaccess file. Too simple. Example (/etc/apache2/apache2.conf)...

    <location /cband-status>
       SetHandler cband-status
       AuthType Basic
       AuthName "Members Only"
       AuthUserFile /var/www/clients/client1/web1/.htpasswd_stats
       require valid-user

Share This Page