Topic awaiting preservation: Restricting access to a directory... |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: KC, KS |
posted 07-16-2003 14:17
I'm running a php program called galleryon my page and I'd like to deny access to the raw album directories. Because of the nature of Gallery I can't just dump an index.html in there and the tutorials I've found so far on .htaccess have clear as mud. |
Bipolar (III) Inmate From: Berlin (almost) |
posted 07-16-2003 14:27
I'm not sure if this is exactly what you're looking for, but if you just want to disable the directory listings which appear when there is no index.* file you could put this line code: Options -Indexes
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 07-16-2003 14:38
Hmm.... how about if I want to allow indexing of the directory that presently returns a 'Forbidden'? |
Maniac (V) Mad Scientist From: :morF |
posted 07-16-2003 14:46
To run a cgi automatically without making it index.cgi, find this line in your HTTPD.conf: |
Bipolar (III) Inmate From: Berlin (almost) |
posted 07-16-2003 15:06
Petskull- quote:
code: Options +Indexes
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 07-16-2003 20:28
Is there anyway of customizing the 'index page' of the contents *without* a cgi? |
Bipolar (III) Inmate From: Berlin (almost) |
posted 07-17-2003 00:15
Yep, that's possible - see this link: |