Help - Search - Member List - Calendar
Full Version: Apache webserver question
nForums.net > Art & Design > Webdesign
Sproutme
Hi
I just installed Apache webserver and wondering how could i make it to list directories in specific folder That people could see list of mp3 files for example
I need to configure permisions but not shure how.

<Directory /mydirectory>
Options None
AllowOverride None
order allow,deny
deny from all
</Directory>


Thanx for your time
Saint26
You don't need much configuration. If you give the root directory proper permissions and don't create a index.html page, Apache will list everything under that directory on it's own.
Sproutme
Thats correct but i got the stripped version of httpd.conf file which denies all permisons exept for index.html and i wondering how to add extra permissions.

On the other hand if i stay with original file how could i denie list permissions for folder i don't want to be listed.
Saint26
CODE

[B]How do I turn automatic directory listings on or off? [/B]

If a client requests a URL that designates a directory and the directory does not contain a filename that matches the DirectoryIndex directive, then mod_autoindex can be configured to present a listing of the directory contents.

To turn on automatic directory indexing, find the Options directive that applies to the directory and add the Indexes keyword. For example:

<Directory /path/to/directory>
  Options +Indexes
</Directory>

To turn off automatic directory indexing, remove the Indexes keyword from the appropriate Options line. To turn off directory listing for a particular subdirectory, you can use Options -Indexes. For example:

<Directory /path/to/directory>
  Options -Indexes
</Directory>



hXXp://httpd.apache.org/docs/misc/FAQ.html
Sproutme
I think next time I should read Help files smile.gif
thanx i will try that
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2025 Invision Power Services, Inc.