My directory structure looks like this /testwebpage .htaccess |--cgi-bin---| Test.cgi |---Admin-| .htaccess Test2.cgi |---passwd-| .htpasswd #### AuthUserFile /home/user/testwebpage/passwd/.htpasswd AuthGroupFile /dev/null AuthName "protected site" AuthType Basic require valid-user