IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Apache webserver question

Sproutme
post Jul 28 2004, 07:44 PM
Post #1


<º))))><
**

Group: Private Member
Posts: 102
Joined: 18-March 04
Member No.: 29



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


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Saint26
post Jul 28 2004, 08:03 PM
Post #2


nFm [ progressor ]
**

Group: Private Member
Posts: 186
Joined: 18-March 04
Member No.: 31



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.


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sproutme
post Jul 28 2004, 08:30 PM
Post #3


<º))))><
**

Group: Private Member
Posts: 102
Joined: 18-March 04
Member No.: 29



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.


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Saint26
post Jul 28 2004, 08:57 PM
Post #4


nFm [ progressor ]
**

Group: Private Member
Posts: 186
Joined: 18-March 04
Member No.: 31



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

This post has been edited by Saint26: Jul 28 2004, 08:57 PM


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sproutme
post Jul 28 2004, 09:28 PM
Post #5


<º))))><
**

Group: Private Member
Posts: 102
Joined: 18-March 04
Member No.: 29



I think next time I should read Help files :)
thanx i will try that


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicTopic OptionsStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
 

Lo-Fi Version Time is now: 4th May 2024 - 04:17 AM