06-03-04 09:24 PM
Hi there
I have a problem when trying to redirect an URL. So please help me if you ca
n, because I am going crazy on this....
The platform is an IBM Apache HTTP Server V. 1.3 and an IBM Application Serv
er V. 4.x running a Devine solution.
Now my problem is that we have two URL's how should be showing the same site
.
Exampel:
We have already a site called www.a-a.com. But now we have included the URL www.aa
.com to oure litle firm. So now we would like the two URL's to point to the
same instance of the WAS.
I am already having this listed in my httpd.conf file:
<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName www.a-a.com
CustomLog "| ......
..
..
</VirtualHost>
And that work fine - we can see the site and so on.
Now I have tryed doing like this/adding this to the httpd.conf file:
<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName aa.com
ServerAlias www.aa.com a-a.com www.a-a.com
</VirtualHost>
The total is now:
<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName www.a-a.com
CustomLog "| ......
..
..
</VirtualHost>
<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName aa.com
ServerAlias www.aa.com a-a.com www.a-a.com
</VirtualHost>
But this does not work !??? I can reach the default errorpage of the HTTP-se
rver - but not get into the WAS or even the requested(redirected URL).
There is a DNS server in oure enviroment, so we do not have to change any wi
ndows HOSTS files.
I hope someone can help - and understand my english
Regards
Brian Tolstrup
[ Post a follow-up to this message ]
|