[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Virtual Site on two ips?
- Subject: RE: [cobalt-users] Virtual Site on two ips?
- From: "Andy Brown" <andy.brown@xxxxxxxxxxxxx>
- Date: Mon Oct 1 23:30:47 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
What you need to do is edit
/etc/httpd/conf/httpd.conf
[double check the path, we use a raq 3i]
then look for the site you want to have on both IP's. Copy the whole
block like this:
NameVirtualHost 193.195.0.0
<VirtualHost 193.195.0.0>
ServerName www.yoursite.co.uk
ServerAdmin site5
DocumentRoot /home/sites/site5/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^193.195.0.0(:80)?$
RewriteCond %{HTTP_HOST} !^www.yoursite.co.uk(:80)?$
RewriteRule ^/(.*) http://www.yoursite.co.uk/$1
[L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site5/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site5/users/$1/web/$3
</VirtualHost>
then paste it in just below, changing each mention of the IP address
accordingly.
Save the httpd.conf file and restart the webserver by issuing
/etc/rc.d/init.d/httpd restart
[again check, for the raq4]
Andy Brown
http://www.linuxnetworking.co.uk
-----Original Message-----
From: Adam Shailes [mailto:adamshailes@xxxxxxxxxxx]
Sent: 02 October 2001 10:38 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Virtual Site on two ips?
Hi
We have a Cobalt RaQ 4i which has two NICs, one being plugged directly
to
our internet connection and one now plugged into our student network.
Our network guy has got our DNS server to lye to requests made from the
student network so it goes to the Cobalt box 2nd NIC ip.
How can I get a virtual site to listen on both ip's?
Currently any request from our student network (on any of our virtual
sites)
just brings up the cobalt "Welcome to the Cobalt RaQ" page.
I have looked around the list the archives and found
http://list.cobalt.com/pipermail/cobalt-users/2000-June/013376.html
But that suggests for a RaQ 3 to edit named.conf (our box is not running
a
DNS server so I guess that's why the only file I can see by that name is
called named.disable)
Thank you for any help.
Regards
Adam Shailes
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users