Wednesday, October 21, 2009

Apache: Directory Indexing Security - Part II

Welcome Back !!

Lets Discuss more on Directory Indexing.In the Last tutorial, we explored secure aspects with Restricting user with / access under Linux System. Now, we would explore on Enabling Indexing with DocumentRoot.

Create publish Directory
-----------------------

# mkdir /usr/web
#cd /usr/web
#mkdir -p www/publish
#mkdir {Fedora-9,Fedora10}

Say the Main Configuration setting include:

DocumentRoot "/usr/web/www"

If you want to enable indexes generation on some particular directory or vhost just add the Indexes option:

Directory /usr/web/www/publish
Options Indexes FollowSymLinks
AllowOverride None
/Directory

and this will enable only in that folder the generation of indexes. In this case, you might want to prevent the listing of some file types as seen in my previous post: “Hide a file type from directory indexes“ which we will explore in next tutorial.

Till then, Happy LinuXing !!!

No comments:

Post a Comment