Networking Forums

Networking Forums > Computer Networking > Linux Networking > mapping user's home directory to URL using apache.

Reply
Thread Tools Display Modes

mapping user's home directory to URL using apache.

 
 
query.cdac@gmail.com
Guest
Posts: n/a

 
      04-18-2007, 08:57 AM
Hi All,

apache provides the facility to access user's home directory through
URL. For that I have done the following configuration in /etc/httpd/
conf/httpd.conf .

# UserDir disable (commented in httpd conf file)

UserDir public_html

After that I have created the public_html directory under user's home
directory.

But when I try to access the URL , www.example.com/~user, it is giving
403 forbidden error.
The log file is splashing the following error.
"""

[Wed Apr 18 14:28:40 2007] [error] [client 172.16.16.25]
(13)Permission denied: access to /~zaman denied

"""

I change the ownership of public_html directory to
apache.apache .

But even though it is not working.

Please somebody guide me in correcting the problem.


With thanks.

 
Reply With Quote
 
 
 
 
Tim
Guest
Posts: n/a

 
      04-18-2007, 09:10 AM
(E-Mail Removed) wrote:

> Hi All,
>
> apache provides the facility to access user's home directory through
> URL. For that I have done the following configuration in /etc/httpd/
> conf/httpd.conf .
>
> # UserDir disable (commented in httpd conf file)
>
> UserDir public_html
>
> After that I have created the public_html directory under user's home
> directory.
>
> But when I try to access the URL , www.example.com/~user, it is giving
> 403 forbidden error.
> The log file is splashing the following error.
> """
>
> [Wed Apr 18 14:28:40 2007] [error] [client 172.16.16.25]
> (13)Permission denied: access to /~zaman denied
>
> """
>
> I change the ownership of public_html directory to
> apache.apache .
>
> But even though it is not working.
>
> Please somebody guide me in correcting the problem.
>
>
> With thanks.


Hi

Probably:

chmod a+x ~zaman
chmod -R a+rX ~zaman/public_html

What you are missing is the effect of the first chmod I suspect.

HTH

Tim
 
Reply With Quote
 
Paul Black
Guest
Posts: n/a

 
      04-18-2007, 09:30 AM
(E-Mail Removed) wrote:
> [Wed Apr 18 14:28:40 2007] [error] [client 172.16.16.25]
> (13)Permission denied: access to /~zaman denied
>
> """
>
> I change the ownership of public_html directory to
> apache.apache .
>
> But even though it is not working.


Is SELinux butting in and preventing the access?


--
Paul
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      04-18-2007, 11:57 AM
On Apr 18, 1:57 am, query.c...@gmail.com wrote:

> But when I try to access the URL ,www.example.com/~user, it is giving
> 403 forbidden error.
> The log file is splashing the following error.
> """


> [Wed Apr 18 14:28:40 2007] [error] [client 172.16.16.25]
> (13)Permission denied: access to /~zaman denied
>
> """


Okay, so the problem is the permissions on /~zaman

> I change the ownership of public_html directory to
> apache.apache .


Umm, why? The problem was with /~zaman (Plus, that's just wrong. For
one thing, a normal user doesn't have permissions to do that. For
another thing, there's no reason to have user pages that users can't
manage.)

DS

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Directory Mapping to Share\UserName sometimes maps to Share Bill Windows Networking 3 10-16-2007 03:26 PM
User Home Directory not mapped over wireless connection R. DeLaSerda Wireless Networks 0 03-13-2007 01:06 PM
home directory rights and mapping for windows 98 clients =?Utf-8?B?Um91bmR5?= Windows Networking 1 07-22-2005 10:27 PM
Win2000 FTP server "user <NNN> cannot login, home directory inaccessible" Tore Uthus Windows Networking 3 01-22-2004 01:22 AM
Mapping a User Directory in W98 Angela Windows Networking 2 12-30-2003 03:53 PM



1 2 3 4 5 6 7 8 9 10 11