A simple way to display a Linux file tree please!!!
Patrick du Boucher
patrick.duboucher at gmail.com
Mon Nov 26 10:40:31 PST 2007
On 26/11/2007, Lonni J Friedman <netllama at gmail.com> wrote:
>
> 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.
Yes indeed, not very descriptive, but at least it confirms it's a
permissions issue.
[Mon Nov 26 19:31:51 2007] [error] [client <x>.<x>.<x>.52] (13)Permission
denied: access to /index.html denied
[Mon Nov 26 19:31:53 2007] [error] [client <x>.<x>.<x>.52] (13)Permission
denied: access to /index.html denied
Also, what are the permissions for every directory & file leading to
> your index.html file?
path is /var/www/html/index.html... here are the perms.
drwxr-xr-x 25 root root 4096 Nov 8 17:03 var
drwxr-xr-x 8 root root 4096 Oct 22 10:34 www
drwxr-xr-x 2 root root 4096 Nov 26 13:48 html
-rwxrwxr-x 1 root root 36 Nov 26 13:48 /var/www/html/index.html
all seems okay....
contents of index.html is
<html>
<body>
toto
</body>
</html>
> >> 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.
Point taken! indeed this is what i will focus on!
I've changed the Docroot back....
> 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
> _______________________________________________
> Linux-users mailing list ( Linux-users at linux-sxs.org )
> Unsub/Password/Etc:
> http://mail.linux-sxs.org/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on
> irc.linux-sxs.org !
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/linux-users/attachments/20071126/c5698eb9/attachment-0002.html
More information about the Linux-users
mailing list