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

RE: [cobalt-users] User's own domain



Hi


This works well for me and I think I have a way of enabling front page exentions if needed.

Create a file called

/etc/httpd/conf/extranames.conf

then  pico -w /etc/httpd/conf/httpd.conf 

add this line to the bottom of your httpd.conf file

Include /etc/httpd/conf/extranames.conf

then /etc/rc.d/init.d/httpd reload 

this will reload the config files

then open up extranames.conf

and add this to extranmes.conf

<VirtualHost 0.0.0.0
ServerName www.xyz.com
DocumentRoot /home/sites/site1/web/abc/xyz
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^0.0.0.0(:80)?$
RewriteCond %{HTTP_HOST}                !^www.www.xyz.com(:80)?$
RewriteRule ^/(.*)                      http://www.www.xyz.com/$1 [L,R]
RewriteOptions inherit
Options +FollowSymlinks
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>

make sure to change the

/home/sites/site#/web/xyz

the VirtualHost 0.0.0.0 and !^0.0.0.0(:80)?$ to your servers IP address.

Save the changes then 

then /etc/rc.d/init.d/httpd reload


Regards

Doug



-----Original Message-----
From: jale@xxxxxxxxxx [mailto:jale@xxxxxxxxxx]
Sent: 19 November 2002 14:58
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] User's own domain



> > I have a domain, say www.abc.com on a raq4.
> > A kind user of this domain, has registered his personal
> > domain, say xyz.com. He would love to have www.xyz.com
> > display the contents of www.abc.com/~user I would like to
> > make this for him, but how can I do that? I have looked in
> > the rewrite rules of apache (I think the solution is in
> > there, but I'm unsuccessfull in that). Thanks.
> >
>
>Just make a virtual host container in httpd.conf so the root directory
>is /home/sites/site#/users/user

Or, if you prefer to not modify the httpd.conf and just want to redirect 
xyz.com to abc.com/~user you can put this in for the HTML in the index page 
of xyz.com

<meta http-equiv="refresh" content="0;url=http://www.abc.com/~user";>

(as per COMPUTICA's input last week)

This method worked great for me when setting up some of my user's sites. It 
can be done by the user, no need to admin into the box. But, the users will 
see the name abc.com/~user in the address line of their browser after it 
redirects, not sure what Dan's method does, haven't tried that one as yet. 
If it still show xyz.com that is an advantage as no one will know the true 
location of the page being displayed.

Jale

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users