[96205] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: user webspace

daemon@ATHENA.MIT.EDU (Anthony E. Greene)
Sun Oct 25 10:32:58 1998

From: "Anthony E. Greene" <agreene@pobox.com>
To: redhat-list@redhat.com
Date: Sun, 25 Oct 1998 17:06:38 +0100
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Sun, 25 Oct 1998, linux@lafayettehigh.org wrote:
>
>	I have my users' webspace setup by default like:
>www.lafayettehigh.org/~username.
>
>How would I make them like:
>home.lafayettehigh.org/username
>and keep the pages on the same server.  Note that I would also 
>like to remove the ~ from the address.
>
>Any suggestions?

Let the users continue to store files in their home directories. You could
do:

   ln -s /home/username/public_html /home/httpd/html/username 

for each user. If you make this a standard, you could put it in a script
named 'linkhtmldir':

   #!/bin/bash
   ln -s /home/$1/public_html /home/httpd/html/$1 

and call it like this:

   linkhtmldir agreene


--
Anthony E. Greene <agreene@pobox.com>
Homepage & PGP Key <http://www.pobox.com/~agreene/>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post