d4011,
That has half worked. Using the .htaccess file you specified, when I access the script inside the subdirectory, the output of the script appears in the browser but the request for authorisation still appears on top of it, which you then have to cancel. My system looks roughly like this:
/apache
/htdocs
.htaccess --> Require valid user
[static content]
/cgi-bin
.htaccess --> Require valid user
[Perl scripts]
/academy
.htaccess --> Unrestricted using content you specified
[Perl scripts]
I changed the AuthName value in the htdocs and cgi-bin folders so I know which one is acting on the content. When I run a Perl script in the /academy folder, the content appears in the browser but the authorisation request from appears in the browser anyway (cancelling it works without redirecting to an error page), and the AuthName value that appears is from the htdocs folder. Disabling the .htaccess file in the /academy folder prevents the content from appearing and forces a redirect to an error page if authorisation is cancelled, so it's definitely doing something, just not quite what I want. Any thoughts?
Main Topics
Browse All Topics





by: d4011Posted on 2009-10-22 at 07:57:52ID: 25634991
Put in the subdirectory a .htaccess file with that content:
Satisfy Any
Order Deny,Allow
Allow from all