View previous topic :: View next topic |
Author |
Message |
DingoStick n00b
Joined: 05 Mar 2003 Posts: 63 Location: The Keweenaw
|
Posted: Tue Nov 04, 2003 6:27 am Post subject: What is it with Apache2 and public_html? |
|
|
I've read over a half dozen posts here regarding problems with Apache2 and public_html - all the same error I'm getting - and none of the solutions work for me. When I go to http://localhost/~user/, I get a 403 error, and a 403 ErrorDocument error. I can't seem to get it to work. So hopefully someone who knows Apache2's quirks can help out a little. Here's what I've got:
Apache2 running as apache.apache.
My user's public_html permissions are 755.
In my commonapache2.conf, I have:
Code: | <Directory /home/*/public_html>
AllowOverride All
Options MultiViews +Indexes Includes FollowSymLinks
<IfModule mod_access.c>
Order deny,allow
Allow from all
</IfModule>
</Directory> |
I've tried changing "Order deny,allow" to "Order allow,deny", and I've tried explicitly putting in an entry for my particular username. After restarting Apache and reloading localhost/~username/, I still get the same error message. I can't seem to get it to give me access to my home directory over Apache.
Does anyone know what I'm doing wrong? _________________
Linux programs, themes, howtos, etc.
|
|
Back to top |
|
|
Souperman Guru
Joined: 14 Jul 2003 Posts: 449 Location: Cape Town, South Africa
|
Posted: Tue Nov 04, 2003 7:49 am Post subject: |
|
|
What does /var/log/apache2/error_log have to say about it? _________________ moo |
|
Back to top |
|
|
ariejan Tux's lil' helper
Joined: 01 Jun 2002 Posts: 100 Location: Eindhoven, The Netherlands
|
Posted: Tue Nov 04, 2003 10:28 am Post subject: |
|
|
Are you sure permissions are set correctly for apache to access /home/user/public_html ?? |
|
Back to top |
|
|
DingoStick n00b
Joined: 05 Mar 2003 Posts: 63 Location: The Keweenaw
|
Posted: Tue Nov 04, 2003 2:12 pm Post subject: |
|
|
gpd wrote: | What does /var/log/apache2/error_log have to say about it? |
Code: | [Tue Nov 04 01:34:18 2003] [error] [client 127.0.0.1] (13)Permission denied: access to /~ds/ denied |
ariejan wrote: | Are you sure permissions are set correctly for apache to access /home/user/public_html ?? |
As far as I know, permissions are set properly. Maybe I'm missing something, though. _________________
Linux programs, themes, howtos, etc.
|
|
Back to top |
|
|
indros Tux's lil' helper
Joined: 27 Sep 2002 Posts: 139
|
Posted: Tue Nov 04, 2003 3:37 pm Post subject: |
|
|
Check to make sure the apache user/group has read access to /home/user. Correct permissions on /home/user/public_html may be right, but apache will be blue in the face if it can access /home/user. |
|
Back to top |
|
|
DingoStick n00b
Joined: 05 Mar 2003 Posts: 63 Location: The Keweenaw
|
Posted: Tue Nov 04, 2003 3:55 pm Post subject: |
|
|
indros wrote: | Check to make sure the apache user/group has read access to /home/user. Correct permissions on /home/user/public_html may be right, but apache will be blue in the face if it can access /home/user. |
Thanks, that did it for me. I figured it'd be something goofy. :-/ Much appreciated. _________________
Linux programs, themes, howtos, etc.
|
|
Back to top |
|
|
MrBrain n00b
Joined: 18 Mar 2004 Posts: 23
|
Posted: Mon Apr 19, 2004 8:59 pm Post subject: |
|
|
indros wrote: | Check to make sure the apache user/group has read access to /home/user. Correct permissions on /home/user/public_html may be right, but apache will be blue in the face if it can access /home/user. |
Actually execute access will do, then other users cannot list files and see what you have in your home dir _________________ who said gentoo was fast ?-) |
|
Back to top |
|
|
|