A simple way to display a Linux file tree please!!!
Lonni J Friedman
netllama at gmail.com
Mon Nov 26 07:27:22 PST 2007
On 11/26/07, Patrick du Boucher <patrick.duboucher at gmail.com> wrote:
> >> 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?
> >
>
> Okay so I've added, some basic html, to no avail. I'm still getting some
> "You don't have permission to access /index.html on this server." errors
Have you checked the apache error log? That should be the first place
to look for information on why something is failing.
Also, what are the permissions for every directory & file leading to
your index.html file?
> >> 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
> >
>
> /etc/httpd/conf/httpd.conf
>
> Indeed, my mistake. That is where the conf file is kept.
> DocumentRoot "/var/pagoda"
I don't really understand why you're trying to create a new docroot
when Redhat provides you with a perfectly functioning one. If you
can't get the default docroot working, then I think you have little
chance of getting a new, alternate docroot to work. Please focus on
getting the standard, expected functionality working before going off
into the weeds with custom configurations.
> Lonni J Friedman-2 wrote:
> >
> > 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