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

Hide Icon? and other files in Apache directory listings UNIX
One thing I do from time to time is share a folder structure in many ways. This could include HTTP and AppleShare both (especially using SharePoints or equivalent to share a folder structure separate from the user's Public Site). However, if I allow Directory Listing for that folder structure, I end up with that ugly "Icon?" file, assuming that I added my own, more pretty or informative icon to any of the folders in the Finder. So, I looked up the correct directive to hide any file/folder pattern in Apache, and blocked that darn "Icon?" file from showing as follows:
  1. Become the root (superuser)
  2. Type cd /etc/httpd
  3. Edit httpd.conf (using your favorite editor - vi is mine)
  4. Find the string "IndexIgnore"
  5. Add Icon? to the end of that line. The line looks as follows (once the change is added):
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t Icon?
  6. Write and Quit
  7. Retart your Apache Web Server (Personal Web Sharing).
Cheers!
    •    
  • Currently 3.60 / 5
  You rated: 5 / 5 (5 votes cast)
 
[4,463 views]  

Hide Icon? and other files in Apache directory listings | 2 comments | Create New Account
Click here to return to the 'Hide Icon? and other files in Apache directory listings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Hide Icon? and other files in Apache directory listings
Authored by: osxfan57 on Jul 21, '03 01:21:32AM

Follow-up question from someone who is not an OSX expert at all. I figured out how to turn on Personal Web Sharing and got a virtual web server from dyndns.org. It's all set up and my brother (with whom I want to share files) can see my index.html file I created. However, how do I create a page that will show a listing of specific directories on my Mac so that he can browse then and download files I want to share with him? Thanks.

---
iMac 17, OS 10.2.4



[ Reply to This | # ]
Hide Icon? and other files in Apache directory listings
Authored by: Jayceek on Jul 26, '04 01:04:02PM

Hi,
Thank you for your hint. I tried it on a Panther Server. It does not seem to work. I have simply appended the "icon?" to a space following the last character of the line, "t".

Is the behavior different of Panther Server? Basically, people see the icon file while browsing pages through the Apache Web Server of a file listing of a folder on the drive.

Thanks.



[ Reply to This | # ]