mod_userdir 403 error

This is a discussion on mod_userdir 403 error within the Apache Web Server forums, part of the Web Server and Related Forums category; I have just setup web space for each user on a system using mod_userdir.. I set it up by uncommenting ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2004
Me
 
Posts: n/a
Default mod_userdir 403 error

I have just setup web space for each user on a system using mod_userdir..

I set it up by uncommenting the default setup in the httpd.conf file
that comes with FC2..So effectively the settings are..

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

Initially it didn't work and gave a 403 error which said to me it was
permission related..

The only way I could think of to get around it was to put the Apache
user into each user's group and then make sure the home directory had
770 directory permissions.

The default home directory permission is 700.

Have I done the right thing?
Did I get my config wrong?
Is there any real security problem with the way I have done it?
Is there a better (more secure) way of giving each user their own webspace?

Thanks..
  #2 (permalink)  
Old 11-09-2004
HansH
 
Posts: n/a
Default Re: mod_userdir 403 error

"Me" <Me@here.com> schreef in bericht
news:41900bb9$0$27534$db0fefd9@news.zen.co.uk...
> Initially it didn't work and gave a 403 error which said to me it was
> permission related..
>
> The only way I could think of to get around it was to put the Apache
> user into each user's group and then make sure the home directory had
> 770 directory permissions.

Most common practise is to NOT make apache member of any groups and have
apache run as special user in a special group; name of both will probably
vary per distribution.
>
> The default home directory permission is 700.

As the digits represent the right per user, group members and others,
setting the right hand digit to
1 for files
5 for scripts
7 for folders
should give 'the world' -being all users unkown- access well limited to
their needs.

HansH


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0