Jump to:
| Project: | Protected Download (downld) |
| Version: | 5.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I have got your module installed and it appears to be working when I type in the /system/files/ paths manually. It allows the download when I'm logged in, and denies it when I'm not. The problem is that the 'ErrorDocument 403 /index.php' line that I put into my httpdocs/.htaccess doesn't seem to be working. Instead of redirecting to index.php and saying denied, it just has the white apache error page saying-
Forbidden
You do not have permission to access this document.
Web Server at xxxxxxxxx.com
I'm running drupal 5.10 on Apache/2.0.52 (CentOS). Plesk is used to manage the websites, and yes the 'custom error documents' setting in plesk for this domain is checked (it does the same thing if it's not checked).
Comments
#1
I know this is an old thread but it can up first in Google so figured I would post a quick solution.
I wound up having to add the 'q' parameter and point it to my custom access denied page (admin/settings/error-reporting).
The below snippet requires an 'access-denied' alias which points to custom access denied node (node/2).
ErrorDocument 403 /index.php?q=access-deniedYou can also point directly to the node. Using an alias helps insure that the .htaccess change is self-documenting.
ErrorDocument 403 /index.php?q=node/2