Thursday, July 24, 2008

Stop Directory Listing (Indexing) on Apache web server

Hello @ all

With a simple one line insertion in httpd.conf file, you can stop full listing of your directory on the web ...

Insert the following line in httpd.conf file

IndexIgnore *

( Insert any where in the file but make sure not be in any of the node starting with <...../> )

***** Happy Apache web server Configuration*****

Document root setup, httpd.conf file

Hi @all,
On apache web server Document root setup is a easy task which can be tedious some times because of some mistakes by ours..
Some Possible error
like.. server don't allow to access file from ur document root folder even if specified in Document root field..
Solution:
while creating ur document root don't forgot to change two fields in httpd.conf file

ex: If I want to set my document root as C:/myWebFiles/../web then necessary changes are:
1. set document root
DocumentRoot "C:/myWebFiles/../web"

2.
Change the same in Directory node also..
"C:/myWebFiles/../web">

Imp::: If u made changes only in document root,then server will not allow to access document root unless u 'll make same change in node also


Note:-
Make sure you r not going to change the other node
/* no change in this node */

Options FollowSymLinks
....



With these two changes its very easy to set document root for the Apache web server...
....#### enjoy with apache web server ####...