Apache Directives

Discussion in 'General' started by Mr. Print, Jan 30, 2010.

  1. Mr. Print

    Mr. Print New Member

    I have a site that runs the cgi scripts from the local web directory. I have added the following code in apache directives, however I don't want people to be able to list a folder. Can someone show me how to correct this:

    My Directive:

    <directory /var/www/web2/web>
    Options ExecCGI Multiviews Indexes FollowSymLinks Includes SymLinksIfOwnerMatch
    IncludesNoExec
    AllowOverride all
    allow from all
    </directory>

    Thanks for your time.
     
  2. damir

    damir New Member

    You can put - sign before Indexes, like this:

    Code:
    <directory /var/www/web2/web>
    	Options ExecCGI Multiviews -Indexes FollowSymLinks Includes SymLinksIfOwnerMatch 
            IncludesNoExec
            AllowOverride all
            allow from all
    </directory>
    
     
  3. Mr. Print

    Mr. Print New Member

    Thanks so much, Damir. That did the trick.
     

Share This Page