| 1 |
// $Id$
|
| 2 |
|
| 3 |
CONTENTS OF THIS FILE
|
| 4 |
---------------------
|
| 5 |
|
| 6 |
* Summary
|
| 7 |
* Installation
|
| 8 |
* More information
|
| 9 |
* Credits
|
| 10 |
|
| 11 |
|
| 12 |
SUMMARY
|
| 13 |
-------
|
| 14 |
|
| 15 |
This module makes it possible for public and private files to co-exists on an
|
| 16 |
Apache web server.
|
| 17 |
|
| 18 |
|
| 19 |
INSTALLATION
|
| 20 |
------------
|
| 21 |
|
| 22 |
1. INSTALL MODULE
|
| 23 |
|
| 24 |
To install this module, place its entire folder in your modules directory
|
| 25 |
(resulting in e.g. sites/default/modules/downld). Then go to Administer >
|
| 26 |
Site building > Modules and enable the Download module.
|
| 27 |
|
| 28 |
2. SET DOWNLOAD METHOD TO PUBLIC
|
| 29 |
|
| 30 |
Go to Administer > Site configuration > File system and select the Public
|
| 31 |
download method.
|
| 32 |
|
| 33 |
3. PROTECT DIRECTORIES
|
| 34 |
|
| 35 |
For each directory whose content should be protected, create a .htaccess
|
| 36 |
file with following content:
|
| 37 |
|
| 38 |
Deny from all
|
| 39 |
|
| 40 |
4. ADD ERROR HANDLER
|
| 41 |
|
| 42 |
Add the following line to the .htaccess file in Drupal's root directory:
|
| 43 |
|
| 44 |
ErrorDocument 403 /index.php
|
| 45 |
|
| 46 |
|
| 47 |
MORE INFORMATION
|
| 48 |
----------------
|
| 49 |
|
| 50 |
To file a bug report, feature request or support request, see the module's
|
| 51 |
issue queue at http://drupal.org/project/issues/downld.
|
| 52 |
|
| 53 |
|
| 54 |
CREDITS
|
| 55 |
-------
|
| 56 |
|
| 57 |
Authors:
|
| 58 |
Thomas Barregren <http://drupal.org/user/16678>
|
| 59 |
Joakim Stai <http://drupal.org/user/88701>
|
| 60 |
|
| 61 |
Sponsors:
|
| 62 |
SSPA <http://www.sspa.se/>
|
| 63 |
Webbredaktören <http://webbredaktoren.se/>
|