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

[cobalt-users] Problem with new IP site alias



Hello,

I need to add a new site alias in my Cobalt RaQ3
the problem: it's not with the same IP of the original site.
(a new IP only for this alias)

In 'httpd.conf' I add:
########

Include /etc/httpd/conf/newsites.conf

########

And in 'newsites.conf':
########

NameVirtualHost 2xx.5x.7x.3x
<VirtualHost 2xx.5x.7x.3x>
ServerName www.new-alias-name.com
ServerAdmin admin
DocumentRoot /home/sites/siteXX/web
ServerAlias new-alias-name.com
RewriteEngine on
RewriteCond %{HTTP_HOST}            !^2xx.5x.7x.3x(:80)?$
RewriteCond %{HTTP_HOST}            !^www.new-alias-name.com(:80)?$
RewriteCond %{HTTP_HOST}            !^new-alias-name.com(:80)?$
RewriteRule ^/(.*)                  http://www.new-alias-name.com/$1 [L,R]
RewriteOptions inherit
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
</VirtualHost>

########
Where 'siteXX' is the original site to use.
and '2xx.5x.7x.3x' the new IP
and after I restart Apache (and try to restart all the RaQ too)

But it's still not possible to use de new site name...
Do you know if it's necessary to add the new IP number in a special file in
order to use it ? (it's OK in the DNS servers with the new name and IP)
or where is the mistake...?

TIA


Henri Clerc, Archisoft, Switzerland