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

Re: [cobalt-users] Configuring DNS for site users webspace



> All
> 
> I have a site user on one of my domains. How can I configure the DNS so I
> can point a new domain name to that site users webspace.
> 
> new domain.com > user domain/~webspace
> 
> Thanks
> 
> Paul Brown
> admin@xxxxxxxxxxxxxxxxxx
> 
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
> 

You

I think it's better to edit httpd.conf for this:

Go for the virtual host definitions (at the end of this file)

<VirtualHost 999.999.999.999>
ServerName www.domain.co.uk
ServerAdmin admin
DocumentRoot /home/sites/siteX/users/web
ServerAlias domain.co.uk
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^999.999.999.999(:80)?$
RewriteCond %{HTTP_HOST}                !^raq.inet-hosting.co.uk(:80)?$
RewriteRule ^/(.*)                   http://raq.inet-hosting.co.uk/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>

If you change your specific paramters it should work. I haven't testet it
yet, because I wouldn't do it this way.

I wonder, why don't you create a new virtual host and point the DNS to this
site? You can copy his documents into the new document root, toss him the
password and be lucky?

--Hendrik.