PDA

View Full Version : Directory indexing off?


hearts
01-20-1999, 01:06 PM
hey chris..

what i did was create a basic html ...

http://www.heartsweb.com/images

it is simple and to the point. http://www.aota.net/ubb/wink.gif

i saved this index.htm in a separate folder on my hardrive and every time I need a new subdirectory... i just put this there as well.

I am not sure if there is another solution, but it works for me!

[This message has been edited by hearts (edited 01-20-99).]

ChrisH
01-20-1999, 01:21 PM
Thanks!!

I did something just a little different;
I used a symbolic link. So in each
dir I create I'll put an index.html
link to my customized 404.html file.
That way they all point to the same file
(easier maintenance):

ln -s ../404.html ./index.html

Works great!


Chris

Terra
01-20-1999, 02:04 PM
By default, Directory Indexing is on...

To turn this feature off, create an .htaccess file in your document root (remember that Apache Override Directives flow down through the subdirectories as well)

>>>>>inside of .htaccess
Options -Indexes
<<<<<end

That's all it takes...

--
Terra
--Wonders why everything always has to flow downhill--
FutureQuest.net

Jacob Stetser
01-20-1999, 02:04 PM
I know there's an .htaccess command for this, too, but I don't remember what it is. However, Chris H, I like your idea with the symbolic link. It's more graceful.

Combine it with.. I think it's this command in your .htaccess file

Options -Indexes

and you've got a nice, pretty and secure solution.

One more question: is there a way to secure all the files in a directory by password except one? hmmm http://www.aota.net/ubb/smile.gif

[This message has been edited by Jacob Stetser (edited 01-20-99).]

Jacob Stetser
01-20-1999, 02:05 PM
feh.

You beat me to the punch, Terra http://www.aota.net/ubb/smile.gif

Justin
01-20-1999, 03:29 PM
Since I have the 404.shtml thing working, I've just been putting a copy of it called index.shtml in each subdirectory, and if I update the links in the include files, those and the 404 page all get updated too. Works for me.

Justin

ChrisH
01-20-1999, 04:18 PM
Thanks a lot!

I'll try the .htaccess method, and
I'll have to look at some documentation
to see what else I can do with this. After
I get the basic HTML up, of course . . ..
Thanks again.


ch

ChrisH
01-21-1999, 12:55 AM
I see that the FQ manual says to put all
your files in the www dir. Well, I like to
keep things in subdirs too. Works fine, as
I would expect, except that directory
indexing is on for the server, so I have
to have an index.html (or so) page in
every directory, or people can get directory
listings. But then I have a bunch of files
all named the same.

This isn't critical, but is there a way
to turn off the directory indexing?

Thanks,

Chris

blobpet
06-09-1999, 01:52 AM
Is there a way for me to customize my directory listings?[nbsp][nbsp]I'd like to have my own background, greetings, menus, and other things as well as the directory listing of all the files and folders.

Terra
06-09-1999, 02:13 AM
I'm not sure about altering the background, but I do know that this module has a ton of features (if your host supports it) ;)

http://www.apache.org/docs/mod/mod_autoindex.html

--
Terra
--I'm a pepper, he's a pepper, she's a pepper, wouldn't you like to be a pepper too?--
FutureQuest.net