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

Lonni J Friedman netllama at gmail.com
Fri Nov 23 13:35:25 PST 2007


On 11/23/07, Patrick du Boucher <patrick.duboucher at gmail.com> 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).

That sounds like expected behavior. Rather than using an empty file,
how about putting one with unique content?

>
> I've tried changing the DocumentRoot path in /etc/httpd/conf.d to
> "/var/pagoda" (and adding index.html there)

I've never seen any distro that keeps its httpd.conf in
/etc/httpd/conf.d .  You likely want /etc/httpd/conf/httpd.conf

>
> 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!!!

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama at gmail.com
LlamaLand                       https://netllama.linux-sxs.org



More information about the Linux-users mailing list