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

James McDonald james at jamesmcdonald.id.au
Mon Dec 3 13:03:02 PST 2007


Patrick du Boucher wrote:
> 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.
>>
>>     
Change you're document root back to the default and
Try this..

<Directory "/var/pagoda">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>


Also make sure you have the httpd documentation installed and then access it from the box you are trying to configure from http://localhost/manual

This will give you the meaning of all the various configuration options.






More information about the Linux-users mailing list