Accessing Web Pages from a User's Folder

Adam Miller maxamillion at fedoraproject.org
Tue Dec 15 00:26:20 UTC 2009


On Mon, Dec 14, 2009 at 6:01 PM, Marti, Robert <RJM002 at shsu.edu> wrote:
> Is selinux enabled?  Did you configure it correctly?
>
> Sent from my iPhone
>
> On Dec 14, 2009, at 17:59, "dustin at larmeir.com" <dustin at larmeir.com>
> wrote:
>
>> Did you try chmod'ing the user's directory to 755?  - Dustin
>>
>> -----Original Message-----
>> From: redhat-list-bounces at redhat.com [mailto:redhat-list-
>> bounces at redhat.com]
>> On Behalf Of Devarishi Kumar Mahadeva
>> Sent: Monday, December 14, 2009 5:17 PM
>> To: redhat-list at redhat.com
>> Subject: Accessing Web Pages from a User's Folder
>>
>> Hi,
>>
>>
>> After installing and configuring Apache (Web Services) on RHEL 5.2 and
>> creating an HTML file as /var/www/html/index.html I can browse the
>> home page
>> without any problem. But if I want to access a particular user's
>> html file
>> which is, for example, given as below:
>>
>> /home/demo/web/demo.html
>>
>> then how to do it? I enabled user_dir in the httpd.conf and set the
>> permisisons on the user's home directory and the web folder as stated
>> therein. By the error messgae is: 403 forbidden: You are not
>> authorised to
>> access it... something like that.
>>
>> Can you help me with it?
>>
>> I have alink in the index.html file as given below:
>>
>> <a href="~demo/web/demo.html"> Demo's Page </a> and am not able to
>> browse
>> it.
>>
>> Thanks,
>> Dev.
>>
>>
>>
>>
>>
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request at redhat.com?subject=subscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>
>>
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

Please paste the section of the httpd.conf that references the user
directories. My suspicion is that you are trying to access the
/home/someuser/demo/ directory where as apache is wanting
/home/someuser/public_html/

-Adam

-- 
http://maxamillion.googlepages.com
---------------------------------------------------------
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments




More information about the redhat-list mailing list