Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A Far More Elegant Solution' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A Far More Elegant Solution
Authored by: newbish on Jun 03, '03 11:56:11AM
Hi, Lou,

Just needed to give myself a minute to come up with something better than my last solution! First I told you to use IndexIgnore * so that Apache's indexing engine would not list any files in the index.

Starting with my previous example, replace IndexIgnore * with this line:

DirectoryIndex index.html /oops.txt

You must also create a text file name oops.txt that contains a message like, "no files here for you to see!" and store it in /Library/WebServer/Documents/. Now when anyone surfing to a directory on your machine that contains no index.html will get the message in opps.txt. This will be global for your machine, and I think this is a better solution than what I suggested earlier. Amazing what I can come up with when I RTF. :)

[ Reply to This | # ]