[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie problems getting pages delivered via Apache



On 2004 Nov 1, at 10:16 AM, Lukasz Sztachanski wrote:

> fastest way :> :
> 1. set good permissions for user's home directory and public_html
> 2. create `home' directory in chroot
> 3. mount_null /home /var/www/home
> 4. chage in httpd.conf UserDir to /var/www/home/*/public_html

Nice idea, bad implementation.

Permit me to use an example. I'm making all this up in this email, so 
please pardon typos.

$ ls -F /var/www/htdocs
index.html ~jane/ ~john/
$ ls -lF /home/{jane,john}
/home/john:
total 0
lrwxr-xr-x  1 john  john  16 Oct 16 14:50 public_html@ -> 
/var/www/htdocs/~john

/home/jane:
total 0
lrwxr-xr-x  1 jane  jane  47 Oct  2 14:33 public_html@ -> 
/var/www/htdocs/~jane

There's no need for union mounts, monkeying with httpd.conf, disabling 
chroot, or anything else. If you're doing this sort of thing a lot, a 
three-line shell script is all you need to automate it.

Cheers,

b&

[demime 0.98d removed an attachment of type application/pgp-signature which had a name of PGP.sig]