Adding users...
Jean-Baptiste Quenot
jb.quenot at caraldi.com
Thu Nov 27 11:31:35 PST 2003
* Xpression:
> Hi list, I installed Apache and ProFTPd servers, users can upload
> tehir sites via FTP, I have configured in Apache DocumentRoot in
> /usr/local/apache2/wwwroot, my question is: can I create users which
> their home directories path is /usr/local/apache2/wwwroot/userN ??? Is
> this way trustable ??? I was thinking it because if it's no
> possible I have to change my DocumentRoot wherever the main site is
> located...thanks...
It depends on what you're trying to do.
1) Typically, user websites go into their home directory like
/home/userN, in a folder called "public_html". That way, the user
website can be accessed at http://yourwebsite/~userN/.
2) However, you may want to put the user websites in another location,
there is no problem, but remember to set the permissions correctly.
Every user directory must be *owned* by that very user. For web usage,
directories should have mode 755, and files 644.
3) If you want to have your user directories outside of the document
root, you will have to setup an Alias for each user, or to define
another virtual host. But that becomes close to solution 1 in that
case.
Cheers,
--
Jean-Baptiste Quenot
http://caraldi.com/jbq/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031127/8f8ff8da/attachment.bin
More information about the freebsd-questions
mailing list