Using .htaccess to ALLOW directory browsing



By default the apache install for most sites now restricts directory browsing. It’s a good idea, you don’t want just ANYTHING to be browsable on a web server, but there comes a time that it makes life easier for a directory (or tree of directories) to be browsable without having to write (copy and paste) links to a bunch of files. Fortunately, .htaccess files can be used for many things and this, of course, is one of them…


In my case, I was tired of linking to 5 rpm’s when posting a new version of rpms on the site, so… I found a suggestion that putting this:

Options +Indexes

in an .htaccess file in the folder I wanted to browse would work… strangely it didn’t. In my case, I found I had to do this…

Options +FollowSymLinks +Indexes

and things started working correctly. If you want a whole directory tree to be browsable the .htaccess file need only be put in the top directory of that tree and that browsable property will be “inherited” through all the subdirectories.

Related Posts

Blog Traffic Exchange Related Posts
  • Asheville based Web Design, VPS Hosting and SEO Services [/caption] Change is constant. The last couple of years I have been doing less onsite computer service. Health has been one large reason for that. I have been focusing on other things though. One of the things that I've been working on is now going live. I've redesigned my web......
  • Saving you from yourself or specifying which index file to use with apache As I said, I mistakenly uploaded a page of links that I use for the main administration across many sites to this domain. Unfortunately, the server preferred using the index.html to the index.php that serves up the USUAL home page. So, for about an hour after my slipup.... the main......
  • WMF exploit through indexing software One of the vectors that has been mentioned early on is the infection of a system through the WMF exploit even when the exploited file was downloaded through a dos command shell. At first this seemed absurd, but it appeared that Google Desktop search was indexing files dynamically and once......
Blog Traffic Exchange Related Websites
  • Why We Have To Switch To Cloud Web Host: Why we must switch to Cloud Web host: Cloud hosting as explained in Wikipedia is a service that does not need knowledge among the consumers, we might not really know it, but we are actually enjoying the benefits of cloud hosting as Google searches are running within a cloud of......
  • Web Hosting Packages And How To Get More Value For Money From Them It is a real shame but a lot of us fail to get good value for money from our web hosting packages. And this is not something that we can blame on our web hosting providers because they have plenty of extra options available but we just don't make the......
  • Fishing Report: March 12, 2010 Sturgeon, Black Bass, Crab and Halibut Frank's Tract had been seeing the bass bite improving, but lately with the weather all over the place there's just no consistency in the way the fish are moving and biting. It's anybody guess where they'll bite or whether they'll bite until the weather......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site