• Knowledge Base: General Questions



    5. Can I password protect my cgi-bin directory? - Top

    By default your private server doesn't setup to allow overriding of cgi-bin with AuthConfig. This will enable all virtual domains to use .htaccess.


    Add the following to httpd.conf some where above the #WEBppliance marker.
    <Directory /home/virtual/*/home/httpd/cgi-bin>
    Allow from all
    AllowOverride AuthConfig
    Order allow,deny
    </Directory>


    Create a .htaccess file for the cgi-bin that looks something like:

    AuthUserFile /home/virtual/siteadmin/home/httpd/htpasswd
    AuthGroupFile /dev/null
    AuthName Login
    AuthType Basic
    require valid-user


    - Updated: June 19, 2001

    [e-Mail me the FAQs]    -     [Search our FAQs]