[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] change ip address problems
- Subject: [cobalt-developers] change ip address problems
 
- From: Barry Titmarsh <barry@xxxxxxxxxxxxxx>
 
- Date: Fri Aug  4 12:41:16 2000
 
I have just changed the ip address on the lcd pannel and some if the site 
are acting strange.
I look into the httpd.conf file to find the old ip address hanging about is 
this ok or not.
What does this do ?
RewriteCond %{HTTP_HOST}                !^194.153.75.20(:80)?$     new ip 
address
RewriteCond %{HTTP_HOST}                !^194.153.75.19(:80)?$     old ip 
address still there.
See extract below.
NameVirtualHost 194.153.75.20
<VirtualHost 194.153.75.20>
ServerName boobox.sheringham.org.uk
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^194.153.75.20(:80)?$
RewriteCond %{HTTP_HOST}                !^boobox.sheringham.org.uk(:80)?$
RewriteRule ^/(.*)                      http://boobox.sheringham.org.uk/$1 
[L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddHandler server-parsed .shtml
AddType    text/html     .shtml
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>
<VirtualHost 194.153.75.20>
ServerName www.snelling.org.uk
ServerAdmin admin
DocumentRoot /home/sites/site3/web
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^194.153.75.19(:80)?$
RewriteCond %{HTTP_HOST}                !^www.snelling.org.uk(:80)?$
RewriteRule ^/(.*)                      http://www.snelling.org.uk/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site3/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site3/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>
Barry
---------------------------------------------------------------------------------------------------------- 
Barry Titmarsh BMT1-RIPE           Nacamar Ltd (Sheringham Office)
                                                  Knole House 38 Cromer Rd
                                                  Sheringham Norfolk NR268RR
e-mail: barry@xxxxxxxxxxxxxx      voice: +44-1263-821-844
www: www.nacamar.net.uk
----------------------------------------------------------------------------------------------------------