Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Browsing Folder Content In Apache, stuck with apache.conf
albustansintra
post Mar 2 2004, 06:19 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 13
Joined: 13-February 04
Member No.: 2,373



Hello,

I needed to get the contents of a folder showing up through apache. I think this is called webdav or the ability to browse folder contents, but I'm not sure.
At the moment I have the following configuration:

-Virtual server setup
-A folder holding the contents that I want users to list (browse)
-The folder mentioned above doesnt have any index.htm or other reference file
-Permissions on the folder are xxx,x-x,x-x root root, so everyone should be able to read and execute
-When I follow the url that queries for the folder I get an automatically generated apache page referencing that the server is not correctly configured. ( This however, only happens if I dont put an index.html file in the folder, when I do it opens the file with no problems)

I guess this has something to do with apache's configuration, probably security related so that the folder contents dont get listed when apache doesnt find an index.htm or other reference file.

If I remember after a fresh install apache did this folder browsing automatically (by default)..

Does anyone know the relevant configuration for this in the apache.conf?

Thanks
Go to the top of the page
 
+Quote Post
Robert83
post Mar 2 2004, 06:37 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



DirectoryIndex index.html index.html.var

Set's the file that Apache will serve if a directory is browsed...


Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
albustansintra
post Mar 2 2004, 08:02 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 13
Joined: 13-February 04
Member No.: 2,373



Thanks Robert..

The thing is I dont want apache serving a default document.

I need it to serve a listing of the files & folders that the webfolder contains. Actually its a folder with my fotos and videos. I want the end user to access it and have a listing of what fotos and videos are available.

.... unsure.gif
Go to the top of the page
 
+Quote Post
Robert83
post Mar 2 2004, 08:07 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

it's simple smile.gif

DocumentRoot "/home/robert/whatever.hml"

have fun smile.gif


Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 2 2004, 08:15 AM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Try this:

on the applicable Options line in the httpd.conf file and the option:

Indexes


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

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

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 01:27 AM