[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Tips: Setting up sub-domains for clients
- Subject: [cobalt-users] Tips: Setting up sub-domains for clients
- From: PyschoCotic@xxxxxxx
- Date: Sun May 14 13:14:53 2000
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