Re: Accessing Web Pages from a User's Folder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 14, 2009 at 6:01 PM, Marti, Robert <RJM002@xxxxxxxx> wrote:
> Is selinux enabled?  Did you configure it correctly?
>
> Sent from my iPhone
>
> On Dec 14, 2009, at 17:59, "dustin@xxxxxxxxxxx" <dustin@xxxxxxxxxxx>
> wrote:
>
>> Did you try chmod'ing the user's directory to 755?  - Dustin
>>
>> -----Original Message-----
>> From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-
>> bounces@xxxxxxxxxx]
>> On Behalf Of Devarishi Kumar Mahadeva
>> Sent: Monday, December 14, 2009 5:17 PM
>> To: redhat-list@xxxxxxxxxx
>> 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@xxxxxxxxxx?subject=subscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>
>>
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?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

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux