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

Re: [cobalt-users] Tips: Setting up sub-domains for clients



Thanks for the useful tip Randy!

Steps 3,4,5 can be simplified to this:

#3) get root access in telnet and go to the new subdomain web dir by typing
'cd /home/sites/hisname.mydomain.com/web

The site domain names are symbolic links to the site# so you can just use the
site name rather than needing to know what the site# is.

Thanks again,

dAvid tHacker                                  Email: David@xxxxxxxxxxxxxx
Thacker Network Technologies Inc.                Http://www.ThackerNet.com



----- Original Message -----
From: <PyschoCotic@xxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: May 14, 2000 2:14 PM
Subject: [cobalt-users] Tips: Setting up sub-domains for clients


> Say you have a client with the domain  mydomain.com and he wants to provide
> his client with  hisclient.mydomain.com and allow his client to upload via
> FTP and for his client's username to be in mydoman.com's siteadmin section.
>
> I put this tip together to help anyone interested in setting up sub-domains
> for users WITHOUT editing any server files.  This tip allows you to setup
> (username.domain.com) and allow users in domain.com to upload and manage
> files sharing the disk quota of domain.com AND allowing the siteadmin of
> domain.com access to his web files!!!
>
> Ok,heres how to do it...  Say you have a client with the domain
mydomain.com
> and he wants to provide his client with  hisclient.mydomain.com and allow
his
> client to upload via FTP and for his client's username to be in
mydoman.com's
> siteadmin section sharing the disk quota of mydomain.com ....
>
> #1) create the username (hisclient) in domain.com's siteadmin section.
> #2) create the sub-domain hisclient.mydomain.com on the main Admin section
> #3) get root access in telnet and go to the /home/sites dir by typing 'cd
> /home/sites'
> #4) figure out what directory the new sub-domain is by typing
>  'ls -l |grep hisname.mydomain.com'
> #5) go into that site's web dir 'cd site#/web'
> #6) create .htaccess by typing   'pico -w .htaccess'
> #7) put the following in the .htaccess file changing the info where
required:
> RewriteEngine  on
> RewriteBase    /
> RewriteRule    ^(.*)$  http://www.mydomain.com/~hisclient/$1  [P]
>
> That will keep the sub-domain in the URL box and look at files in ~hisclient
> AND cgi-bin will work AND hisclient shares mydomain.com's disk quota.
>
> Ingenious huh?  I wrote that after spending an hour on the apache site.
>
> Comments Questions?  Send to:
> RandyS@xxxxxxxxxxxxxx
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>