Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL redirect

 
Brian Tolstrup
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I have a problem when trying to redirect an URL. So please help me if you can, because I am going crazy on this....

The platform is an IBM Apache HTTP Server V. 1.3 and an IBM Application Server 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-server - 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 windows HOSTS files.

I hope someone can help - and understand my english

Regards
Brian Tolstrup
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so you convinced american airlines to give you their domain?

or are you hiding the real names with tokens?

 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about one host?

 
Brian Tolstrup
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike

I have tryed what you posted - and also like this:

<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName www.aa.com
ServerAlias www.aa.com a-a.com www.a-a.com
</VirtualHost>

Nothing works.....

Do you you have any idea on what the problem might be?

Regards
brian Tolstrup
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> There is a DNS server in oure enviroment, so we do not have to change
> any windows HOSTS files

We also have an internal DNS at work, and ocassionaly, we'll forget to update it, or it gets updated incorrectly. Is it possible that this has happened?
 
Brian Tolstrup
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike

I can not see how it can be a DNS problem since the request in both cases (www.a-a.com and www.aa.com) get to the server. I know that because www.a-a.com returns the site as it should do - and request on www.aa.com returns the <VirtualHost 192.168.3.10>'s special errorpage:
ErrorDocument 404 /errorWeb.html.

S� the request gets to the server and is processed - just not correct.

Any idea on what goes wrong?

Regards

Brian Tolstrup
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you make a small change to the error page (something noticeable) and then test again? That is: convince yourself there is no caching going on.

After that i'm out of ideas. I'd suggest apache-user list.
 
Brian Tolstrup
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike

A tryed to change the text in the <title> - bar. The changes was shown, therefore I am sure that that I get the specified 404 errorpage and that no caching is running.

Regards

Brian Tolstrup
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic