Forum Moderators: phranque
AuthUserFile secure/.htpasswd
AuthName Authorized User
AuthType Basic
<Files pop.php>
require valid-user
</Files>
This returns a 403 error at the point I want the user/passwd request to come up. This pop.php file is only read to display the content I want to restrict. the pop.php file is called using href with arguments from another file called catalogue.php
How do I get the user/passwd to display? Any help much appreciated.
Two things to check:
The AuthUserFile path doesn't look right. It is usually a full path from root (/) to the file, like
AuthUserFile /u/httpd/web/secure/.htpasswd Also, you can cut the problem in half... Make a simple html page protected by your password-related code, and use that to get authorization working without all the complexities of actually running the script. Once that works, change the <Files> directive to protect the script instead.
Jim