Mailinglist Archive: opensuse (4398 mails)
| < Previous | Next > |
RC1 Apache2 - problem accessing user public_html dirs
- From: Carl Hartung <suselinux@xxxxxxxxxxxxx>
- Date: Tue, 20 Sep 2005 07:44:20 -0400
- Message-id: <200509200744.21058.suselinux@xxxxxxxxxxxxx>
Hi Everybody,
I'm getting Apache Error 403 'Access Forbidden' when I point my browser to
some pages I'm working on in my ~/public_html/ directory.
"http://localhost/" automagically opens /srv/www/htdocs/index.html.en and, if
I follow the 'documentation' link there, I can access the installed Apache2
documentation.
However, "http://localhost/~carlh/anyname.html" results in Error 403
It seems I must be too close to the problem and frustrated now and am probably
overlooking something simple. Here's my config:
Permissions:
=======
/home/carlh/public_html/ drwxr-xr-x 7 carlh users
/home/carlh/public_html/*.html -rw-r--r-- 1 carlh users
/home/carlh/public_html/images drwxr-xr-x 5 carlh users
From mod_userdir.conf:
=============
...
# not every user's directory should be visible:
#UserDir disabled root
# to enable UserDir only for a certain set of users, use this instead:
UserDir disabled
UserDir enabled carlh
# the UserDir directive is actually used inside the virtual hosts, to
# have more control
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
From mod_mime-defaults.conf (enabling SSIs):
===========================
...
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
From /etc/sysconfig/apache2:
=================
...
# your settings
APACHE_MODULES="access actions alias autoindex cgi dir include log_config mime
negotiation setenvif status userdir asis imap info php4 perl ruby"
What am I doing wrong here? I think I'm too close and frustrated now, so I
must be overlooking something!
TIA & regards,
- Carl
I'm getting Apache Error 403 'Access Forbidden' when I point my browser to
some pages I'm working on in my ~/public_html/ directory.
"http://localhost/" automagically opens /srv/www/htdocs/index.html.en and, if
I follow the 'documentation' link there, I can access the installed Apache2
documentation.
However, "http://localhost/~carlh/anyname.html" results in Error 403
It seems I must be too close to the problem and frustrated now and am probably
overlooking something simple. Here's my config:
Permissions:
=======
/home/carlh/public_html/ drwxr-xr-x 7 carlh users
/home/carlh/public_html/*.html -rw-r--r-- 1 carlh users
/home/carlh/public_html/images drwxr-xr-x 5 carlh users
From mod_userdir.conf:
=============
...
# not every user's directory should be visible:
#UserDir disabled root
# to enable UserDir only for a certain set of users, use this instead:
UserDir disabled
UserDir enabled carlh
# the UserDir directive is actually used inside the virtual hosts, to
# have more control
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
From mod_mime-defaults.conf (enabling SSIs):
===========================
...
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
From /etc/sysconfig/apache2:
=================
...
# your settings
APACHE_MODULES="access actions alias autoindex cgi dir include log_config mime
negotiation setenvif status userdir asis imap info php4 perl ruby"
What am I doing wrong here? I think I'm too close and frustrated now, so I
must be overlooking something!
TIA & regards,
- Carl
| < Previous | Next > |