Project

General

Profile

internal paths don't change

Added by jose colmenares almost 12 years ago

Hi,

When I test my webpage on my computer, everything works perfectly. If I write "http://0.0.0.0:8080/product" on the browser, it goes to the "product" page. If I change the page using buttons or whatever, the address bar changes like it should.

Now, when I run the same source code on an AWS instance, no matter what address I write on the address bar it goes to "http://www.mypage.com/home". I mean, I can write "www.mypage.com/qwertyasdf" and it will go to "http://www.mypage.com/home". And, if I change the page using the buttons, the address does not change.

I'm guessing it a server related issue, since it's the only thing that changed between my laptop and the amazon instance. I'm running the same OS on both, same everything.

I have no ideas about what to try, or where to look for errors. Any idea would be appreciated!

Cheers.


Replies (2)

RE: internal paths don't change - Added by Koen Deforche almost 12 years ago

Hey Jose,

That is totally weird. We are planning to play with AWS also, but not in the next days (or weeks even...).

Is there anything you configured in an AWS console that mentions http://www.mypage.com/home ?

How do you deploy your application? using built-in httpd? behind a reverse proxy?

Regards,

koen

RE: internal paths don't change - Added by jose colmenares almost 12 years ago

I think I found the error. It's probably a misconfiguration on the redirection of the page. It'll take a couple days to fix. It's not related to Wt. For example, if instead of using the address as "www.mydomain.com" I used the elastic IP given by AWS, it works perfectly. It also works perfectly when using the public dns of the aws instance. I'll let you know when I fix it.

I think the answer is here: http://stackoverflow.com/questions/5468246/navigating-to-various-pages-doesnt-changing-url-in-address-bar-of-browser-when

I'm in fact using the redirection, but was not able to change the dns servers. It turns out I have to pay to change them. A very small sum, but what a ....

Will play with it on the weekend.

Cheers.

    (1-2/2)