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

Patrick du Boucher patrick.duboucher at gmail.com
Mon Dec 3 11:33:55 PST 2007


Hi all,

Almost finished. I've nearly achieved what I want. Thanks for all your
inputs.


At the moment, I am successfully displaying the contents of /var/www/html/
as well as sym Links within /var/www/

I now need to display the contents of the folder
/var/pagoda

I've set up a symbolic link
"ln -s /var/pagoda /var/www/html/pagoda"

When I click on the link from a browser,
I am getting "You don't have permission to access /pagoda/ on this server."

I've informed myself some and looked over the /etc/httpd/conf/httpd.conf
file to try to resolve the problem but no luck

I've tried setting the 
<Directory />
    Options FollowSymLinks
    AllowOverride All   <used to be "None">
</Directory>


<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All   <used to be "None">
    Order allow,deny
    Allow from all
</Directory>

but neither have worked.

I've also tried setting the 
DocumentRoot "/var/pagoda"

but no luck.

The permissions in 
/var/pagoda are set to 775 (owner is root)



Anyone help me over this last hurdle!
Thanks
Patrick







Patrick du Boucher wrote:
> 
> What I am looking for is super simple..... and yet I appear to be super
> stuck!
> 
> 
> On a red-hat (to which I am new-ish) system, I want to publish a folder 
> /var/pagoda to a web-browser. Nothing fancy.... purely for file access and
> browsing.
> 
> Something similar to the "Index of /pub" type websites is perfect.
> 
> 
> 
> I have already a httpd service running.....
> 
> The "Red Hat Enterprise Linux Test Page" is displayed when the machine's
> ip adress is entered in a browser.
> 
> 
> sounds great.....
> 
> and this is where the problems start.
> 
> 
> I've tried adding empty index.html files to /var/www/html/ but nothing
> (test page is still loaded).
> 
> 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!!!
> 
> 
> Thanks in advance!
> 
> 

-- 
View this message in context: http://www.nabble.com/A-simple-way-to-display-a-Linux-file-tree-please%21%21%21-tf4861294.html#a14137063
Sent from the Linux Users (linux-sxs.org) mailing list archive at Nabble.com.




More information about the Linux-users mailing list