A simple way to display a Linux file tree please!!!

Ronnie Gauthier ronnieg at instaguide.com
Fri Nov 23 11:48:17 PST 2007


On Fri, 23 Nov 2007 04:05:58 -0800 (PST)
Patrick du Boucher <patrick.duboucher at gmail.com> wrote:


> 
> I've tried changing the DocumentRoot path in /etc/httpd/conf.d to
> "/var/pagoda" (and adding index.html there)
> 
> but now http://<ip.address>/index.html now gives me
> ---------------
> Forbidden
> 
> You don't have permission to access /index.html on this server.
> 
> Additionally, a 403 Forbidden error was encountered while trying to use an
> ErrorDocument to handle the request.
> ----------------
> 
> so before I try to mess with file permissions and configurations..... I was
> hoping some enlightened soul my shed some wisdom!!!
> 

Believe your error output. Change the perms.

As an alternate, I take it that when you access http://localhost the 
browser showed apaches default splash page. If so all you have to do 
is drop the pagoda contents to /var/www/html and edit the index file 
already there. In the steps is a thing I wrote long ago on how to use 
the htaccess file. You can use the fancy display to give out the folder 
contents. Its really nice if all you want to do is give access to raw 
files for DL'ing. You can use custom icons, have a header and footer 
displayed and other goodies.

Ronnie 



More information about the Linux-users mailing list