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

Re: [cobalt-users] testing virtual domain before cutover



On Wed, 11 Jul 2001 cobalt@xxxxxxxxxxxxxxxx wrote:

> Hey,
> I don't use windows, but I could do the same thing in Linux with
> /etc/hosts, but we use the same IP for all virtual sites on the raq. I
> could not pint xxx.xxx.xxx.xxx to multi domains in /etc/hosts. 

You're saying that in /etc/hosts the system will not allow you
to have
111.111.111.22	www.onedomain.com
111.111.111.22	www.twodomain.com

You can also try:

1. Backup your httpd.conf file.
2. In your main site's block in the httpd.conf file, add this line:
    AliasMatch ^/sites/([^/]+)(/(.*))? /home/sites/$1/web/$3
3. Save the file and exit.
4. Restart the httpd server.
   /etc/rc.d/init.d/httpd stop
   /etc/rc.d/init.d/httpd restart
5. Go to www.yourmainsite.com/sites/www.any-site-on-the-server.com in
   your browser

Be warned that some cgi scripts may not work correctly with the above
configuration.

thom
baltimoremd@xxxxxxxxxxxxxxx             Thom LaCosta K3HRN Webmaster