|
|
Prevent Apache from serving .DS_Store files
Perhaps one should also add .DS_Store to the IndexIgnore line. I would use something like this:
This would prevent .DS_Store from showing up in the index. ---
Prevent Apache from serving .DS_Store files
Even better. Disallow anything starting with a dot.
Prevent Apache from serving .DS_Store files
Would any of these suggestions prevent Apache from displaying a directory listing if someone were to try to access http://myipnumber/ or http://myipnumber/~myuserid/ without specifying a file (e.g. index.html) in the url? Or is there a way that I can force a url to the directory to access a specific file or alternates?
Prevent Apache from serving .DS_Store files
Add "-Indexes" to the document root Directory container.
Preventing Apache from listing directory contents
Yes, Lou, there is a way!
A Far More Elegant Solution
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.txtYou 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. :)
And ":*" too
I'm running Apache on Linux box but work remotely from a Mac, so the same situation applies to me, too.
And ":*" too
those filenames which begin with a colon are netatalk's way of displaying non-ASCII characters such as a bullet (•), which Mac users often use to force custom sorting. I don't know how to translate the numbers, but netatalk has always done a good job of preserving these "think different" filenames for me. In the OS X Terminal, non-ASCII characters are displayed with a '?'.
Prevent Apache from serving .DS_Store files
By the way, the httpd.conf file for my Panther installation has:
The ".??*" at the beginning will let you ignore any dot files without ignoring .. (i.e. the parent directory).
Louie--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|