> :~>/home/user/.www
> :~>
> :~>How do I make apache see these directories, do I have to
> add each one to
> :~>the httpd.conf files or is there some way that it will work
> :~>automatically.
>
> How about making a link from /home/user/.www to <APACHE-WEB-DIR>/user?
If you meant create user web directories straightly in the <APACHE-WEB-DIR>
directory, so that when I type http://yoursite/user/, I get the right user
page, yes it will works, no problem. But you will experience administrative
problems.
You'll have to create as much <APACHE-WEB-DIR>/user directories as the
number of user you want to allow to have a personal page.
After creating the directories, you'll have to make the directories belong
to the right user (or make them all belong to a special account on which
users have no rights, but then you'll have to hire someone to check and do
the changes the users want to do on their personal pages, a kind of Big
Brother saying what is good and what is wrong, what can be made public and
what is to go to trash can...).
You'll have then to allow the user to get to his web directory. Here is the
difficult part : the user account can be located on another server than the
web server (as it is most often the case). So you'll have to allow the users
to go on the web server to update their pages (except for the Big Brother
case). This means .rhosts files, NFS and so on... Your web server won't be
very secure then...
You can do it, but it is a lot of work for doing in another way something
that Apache does automatically.
As answered Tim Howell in a previous message,
>Your system is probably already set up to do this, but with the public_html
>directory. Look for the UserDir directive in your httpd.conf file, and
>modify it according to your needs. Don't forget to restart Apache after
>you've made your changes.
>
># UserDir: The name of the directory which is appended onto a user's home
># directory if a ~user request is recieved.
>
>UserDir public_html
> ^^^^^^^^^^^Change this to .www
and don't forget to give read rights to the user under which Apache is
running
Look for the following lines in httpd.conf:
User nobody
Group nobody
You'll then access the page with http://yoursite/~user/
If your user account is located on another server, you surely have already
made his home exportable via NFS, don't you?
If you have an automounter on the web server, then you have no work to do.
Mathieu