<br><br><div><span class="gmail_quote">On 26/11/2007, <b class="gmail_sendername">Lonni J Friedman</b> <<a href="mailto:netllama@gmail.com">netllama@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11/26/07, Patrick du Boucher <<a href="mailto:patrick.duboucher@gmail.com">patrick.duboucher@gmail.com</a>> wrote:<br>> >> I've tried adding empty index.html files to /var/www/html/ but nothing<br>> >> (test
<br>> >> page is still loaded).<br>> ><br>> > That sounds like expected behavior. Rather than using an empty file,<br>> > how about putting one with unique content?<br>> ><br>><br>> Okay so I've added, some basic html, to no avail. I'm still getting some
<br>> "You don't have permission to access /index.html on this server." errors<br><br>Have you checked the apache error log? That should be the first place<br>to look for information on why something is failing.
</blockquote><div><br>Yes indeed, not very descriptive, but at least it confirms it's a permissions issue.<br><br>[Mon Nov 26 19:31:51 2007] [error] [client <x>.<x>.<x>.52] (13)Permission denied: access to /index.html denied
<br>[Mon Nov 26 19:31:53 2007] [error] [client <x>.<x>.<x>.52] (13)Permission denied: access to /index.html denied<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also, what are the permissions for every directory & file leading to<br>your index.html file?</blockquote><div><br>path is /var/www/html/index.html... here are the perms.<br><br>drwxr-xr-x 25 root root 4096 Nov 8 17:03 var
<br>drwxr-xr-x 8 root root 4096 Oct 22 10:34 www<br>drwxr-xr-x 2 root root 4096 Nov 26 13:48 html<br>-rwxrwxr-x 1 root root 36 Nov 26 13:48 /var/www/html/index.html<br><br>all seems okay....<br><br>contents of
index.html is <br><html><br><body><br>toto<br></body><br></html><br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> >> I've tried changing the DocumentRoot path in /etc/httpd/conf.d to<br>> >> "/var/pagoda" (and adding index.html there)<br>> ><br>> > I've never seen any distro that keeps its
httpd.conf in<br>> > /etc/httpd/conf.d . You likely want /etc/httpd/conf/httpd.conf<br>> ><br>><br>> /etc/httpd/conf/httpd.conf<br>><br>> Indeed, my mistake. That is where the conf file is kept.<br>
> DocumentRoot "/var/pagoda"<br><br>I don't really understand why you're trying to create a new docroot<br>when Redhat provides you with a perfectly functioning one. If you<br>can't get the default docroot working, then I think you have little
<br>chance of getting a new, alternate docroot to work. Please focus on<br>getting the standard, expected functionality working before going off<br>into the weeds with custom configurations.</blockquote><div><br>Point taken! indeed this is what i will focus on!
<br>I've changed the Docroot back....<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> Lonni J Friedman-2 wrote:<br>
> ><br>> > On 11/23/07, Patrick du Boucher <<a href="mailto:patrick.duboucher@gmail.com">patrick.duboucher@gmail.com</a>> wrote:<br>> >><br>> >> What I am looking for is super simple..... and yet I appear to be super
<br>> >> stuck!<br>> >><br>> >><br>> >> On a red-hat (to which I am new-ish) system, I want to publish a folder<br>> >> /var/pagoda to a web-browser. Nothing fancy.... purely for file access
<br>> >> and<br>> >> browsing.<br>> >><br>> >> Something similar to the "Index of /pub" type websites is perfect.<br>> >><br>> >><br>> >><br>> >> I have already a httpd service running.....
<br>> >><br>> >> The "Red Hat Enterprise Linux Test Page" is displayed when the machine's<br>> >> ip<br>> >> adress is entered in a browser.<br>> >><br>> >>
<br>> >> sounds great.....<br>> >><br>> >> and this is where the problems start.<br>> >><br>> >><br>> >> I've tried adding empty index.html files to /var/www/html/ but nothing
<br>> >> (test<br>> >> page is still loaded).<br>> ><br>> > That sounds like expected behavior. Rather than using an empty file,<br>> > how about putting one with unique content?<br>> >
<br>> >><br>> >> I've tried changing the DocumentRoot path in /etc/httpd/conf.d to<br>> >> "/var/pagoda" (and adding index.html there)<br>> ><br>> > I've never seen any distro that keeps its
httpd.conf in<br>> > /etc/httpd/conf.d . You likely want /etc/httpd/conf/httpd.conf<br>> ><br>> >><br>> >> but now http://<ip.address>/index.html now gives me<br>> >> ---------------
<br>> >> Forbidden<br>> >><br>> >> You don't have permission to access /index.html on this server.<br>> >><br>> >> Additionally, a 403 Forbidden error was encountered while trying to use
<br>> >> an<br>> >> ErrorDocument to handle the request.<br>> >> ----------------<br>> >><br>> >> so before I try to mess with file permissions and configurations..... I<br>> >> was
<br>> >> hoping some enlightened soul my shed some wisdom!!!<br><br><br>--<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>L. Friedman <a href="mailto:netllama@gmail.com">
netllama@gmail.com</a><br>LlamaLand <a href="https://netllama.linux-sxs.org">https://netllama.linux-sxs.org</a><br>_______________________________________________<br>Linux-users mailing list ( <a href="mailto:Linux-users@linux-sxs.org">
Linux-users@linux-sxs.org</a> )<br>Unsub/Password/Etc:<br><a href="http://mail.linux-sxs.org/mailman/listinfo/linux-users">http://mail.linux-sxs.org/mailman/listinfo/linux-users</a><br><br>Need to chat further on this subject? Check out #linux-users on
<a href="http://irc.linux-sxs.org">irc.linux-sxs.org</a> !<br></blockquote></div><br>