PDA

View Full Version : Getting 403 Access Error when viewing a directory


kausum
11th July 2005, 10:24 PM
Hi,

On my website, some users have their home pages in their own user accounts. However, when they try to access their webpage using <website>/~username it gives them 403 error.

I have checked all the permissions and all directories from /home/username to /home/username/public_html have 755 permissions and all files inside the public_html folder have read access and ownership is also with the user.

The httpd.conf file has the following rule:

RewriteEngine On
RewriteRule ^/~([^/]+)/?(.+) /home/$1/public_html/$2/ [NC]

Yet it gives the 403 error.

Could someone provide me directions on the same.

Kausum

MarkB2k1
11th July 2005, 10:27 PM
What does your /var/log/httpd/error_log file state for the session that you get this error from ?

kausum
11th July 2005, 10:33 PM

The /var/log/httpd/error_log file indicates the folowiing

[Mon Jul 11 17:03:27 2005] [error] [client 134.192.79.25] (13)Permission denied: access to /~username denied, referer: <website>

kausum
11th July 2005, 10:38 PM
And this is the httpd.conf file part

<Directory /home/*/public_html>

Options Indexes Includes FollowSymLinks
AllowOverride None
Allow from from all
Order allow,deny
</Directory>