> > 1. The mathopd can add the user home directories like the apache (ex.
> > /home/user/public_html)?

> This is not possible at the moment. What you could do is create symbolic
> links for each user under /var/www that point to their public_html
> directories.

Yes, you can even make a script that will do it automatically. Something
like this:

#!/bin/sh

# for addresses like http://www.domain.com/~username/
WWWROOT=/var/www
USERPREFIX=~

# for addresses like http://www.domain.com/u/username/
# (you will need to `mkdir /var/www/u' manually)
#WWWROOT=/var/www
#USERPREFIX=u/

#rm -rf $WWWROOT/$USERPREFX*

for DIR in /home/*/public_html ; do
        if [ -d $DIR ]; then
                USERNAME=`echo $DIR | sed -e 's,/home/,,' -e 's,/public_html,,'`
                ln -s $DIR $WWWROOT/$USERPREFIX$USERNAME
        fi
done

> This is not possible at the moment. What you could do is create symbolic
> links for each user under /var/www that point to their public_html
> directories.

__
AT

Reply via email to