LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Folder indexing (https://www.linuxquestions.org/questions/linux-newbie-8/folder-indexing-291700/)

joey52 02-18-2005 12:00 AM

Folder indexing
 
Lets say if I want a directory of a website to be read or store lets say pictures. I keep getting this error:

Forbidden
You don't have permission to access /pictures/ on this server.
--------------------------------------------------------------------------------
Apache/2.0.48 (Fedora) Server at

What file do i have to configure to make this directory show the contents.

Like this: http://www.rocclan.heretic-hosting.com/pbss/

bathory 02-18-2005 02:38 AM

Edit you apache httpd.conf and add a <Directory...> directive like this:
Code:

<Directory "/apache/docroot/pictures">
Options  Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>

Where /apache/docroot is the DocumentRoot of your server.
The keyword is "Indexes" which tells apache to index the contents of the directory specified by the directive. Of course you can just add "Indexes" inside the directive of your DocumentRoot directory to set this globally.

joey52 02-18-2005 03:05 AM

Thanks man. It worked!


All times are GMT -5. The time now is 02:18 AM.