A simple way to display a Linux file tree please!!!
Patrick du Boucher
patrick.duboucher at gmail.com
Mon Nov 26 04:57:40 PST 2007
>> 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
>>
>> 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"
It still sound like it's a permissions issue. but I've tried setting the
owners to index.html
to apache and root; both don't work. (not sure what the linux "anonymous"
user is called.)
Anyone have any further ideas?
Thanks in advance!
Patrick
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 !
>
>
--
View this message in context: http://www.nabble.com/A-simple-way-to-display-a-Linux-file-tree-please%21%21%21-tf4861294.html#a13948657
Sent from the Linux Users (linux-sxs.org) mailing list archive at Nabble.com.
More information about the Linux-users
mailing list