Koozali.org: home of the SME Server

User webpages

Anders Keldsen

User webpages
« on: December 24, 2001, 05:32:10 AM »
I want to give each user a subdirectory in witch he can publish webpages on the server, just like the public_html directory in standard apache.

I've changed /etc/httpd/conf/httpd.conf so it includes:
UserDir public_html

I've changed all the permissions for the path to the public_html-directory to 755

Then I restarted the httpd, and it wont work.

The access_log has no information about this, the error_log says:
client denied by server configuration: /home/e-smith/files/users/anders/public_html.

Any ideas how to solve this problem? And does anybody know why they haven't included this feature as a standard when a user is created?

Regards
Anders Keldsen

Enigma

Re: User webpages
« Reply #1 on: December 24, 2001, 01:11:13 PM »
you could always try aliasing the users home directory in the httpd.conf file (or fragment) and this will give them the option to publish via ftp and view via http.

Best of Luck

Enigma

Merry Xmas and Seasons greetings to all :)

Anders Keldsen

Re: User webpages
« Reply #2 on: December 29, 2001, 02:27:33 AM »
Thanks for the answer, but I would prefer to use the UserDir-method. That way I won't have to change the configuration every time i add/remove a user.

Regards
Anders Keldsen

Anders Keldsen

Re: User webpages
« Reply #3 on: December 29, 2001, 02:43:42 AM »
I made it work. It's a but stupid, but I forgot to write UserDir home/public_html, I just wrote UserDIr public_html.

Anders Keldsen

Enigma

Re: User webpages
« Reply #4 on: December 30, 2001, 01:31:50 AM »
Glad you got it working :)

How about putting a HOWTO together and submitting it to MItel?  I am sure there are many other people who would like to do the same

Regards

Enigma

Anders Keldsen

Re: User webpages
« Reply #5 on: January 05, 2002, 01:43:07 AM »
Good idea with the HOWTO, I'll start working on it as soon as I solve a problem with user-creation.

Regards
Anders Keldsen

Frej

Re: User webpages
« Reply #6 on: June 06, 2002, 02:36:21 AM »
Hi !

I tried that, but it was not a success at all... have you written the How-To ? Where can it be found ?

In fact, I still get "403 Forbidden Access" error, and it is becoming very annoying...

I did the chmod on public_html, and used the template  as written in  http://www.e-smith.org/bboard//read.php?f=1&i=9426&t=9423

I checked averything was ok, and it looks like apache UserDir is ok. but I still get the 403 error...

If you know what I can do to make it work, please tell me, I really need help for that.

thx in advance
Frej.

Sean

Re: User webpages
« Reply #7 on: June 18, 2002, 03:08:48 AM »
I'm having the same problem. I have made the following changes in this file:

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/50UserDir00

I have had the following changes made to no avail with and without trailing slashes:

UserDir public_html
UserDir home/public_html
UserDir /home/e-smith/files/users/*/public_html

I have also CHMOD'd 755 the directories. I have added two public_html directories one in the /home/e-smith/files/users/bob/ directory and one in /home/e-smith/files/users/bob/home/ directory and neither work. I have reloaded and restarted apache countless times and keep getting 403 - Forbidden.

-- snip from /var/log/httpd/access_log --

www.thebeeris.mine.nu 24.43.204.199 - - [17/Jun/2002:18:14:32 -0400] "GET /~exodus/ HTTP/1.1" 403 218 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461)"

-- end snip --

Any help would be greatly appreciated.