Project

General

Profile

running an application on AWS EC2

Added by jose colmenares almost 12 years ago

Hi,

I made a page that looks fine on my computer. Just opened an account with the amazon's EC2 free tier. Installed everything on an ubuntu instance. So far so good. Opened the access for port 80, added the url to wt_config. I'm using wthttpd. The command I'm using is:

sudo ---docroot . ---http-address 0.0.0.0 ---http-port 80 -c style/wt_config.xml

when I type the name of the page in my browser, it just keeps waiting. What am I missing? I'm pretty sure it's the http address, but what it's the correct value? the ip address doesn't work either.


Replies (4)

RE: running an application on AWS EC2 - Added by Koen Deforche almost 12 years ago

Hey,

I would expect this to be a firewall issue ?

Can you telnet to your instance on port 80 ?

Using 0.0.0.0 is probably correct.

Regards,

koen

RE: running an application on AWS EC2 - Added by jose colmenares over 11 years ago

Hi Koen,

I'm going crazy with this.

I switch the port since port 80 seemed to be busy. But nothing happens.

When I type the web address, the browser just keeps waiting. No error message, no page, nothing.

The wt log gives no error. Gives no sign of activity either. It just starts, and stops when I tell him so.

If it helps, I bought the domain to another company. There I redirected the domain to the elastic IP of my AWS instance. Could the problem be here? Maybe I missed something?

I connect to it using ssh -i key myid@xx.xxx.xxx.xxx with no problem.

The port is open in the instance security group.

I'm sorry if this seems off topic. The problem doesn't seems to be wt. But were do I find information about installing wt in AWS if not here?

Cheers.

RE: running an application on AWS EC2 - Added by Koen Deforche over 11 years ago

Hey,

If you are running the application on a port different than port 80, then you need to specify the port number in the URL.

E.g. when deploying like ./myapp.wt ---http-address 0.0.0.0 ---http-port 8080 ...

Then you need to access the website using: http://xxx.xxx.xxx.xxx:8080/

I don't think the domain name itself is a problem --- but to be sure it isn't you can use the IP address instead for testing ?

Regards,

koen

RE: running an application on AWS EC2 - Added by jose colmenares over 11 years ago

Great.

Using the IP:port I can see the webpage, so now I'm sure it's the whole AWS EC2 - route 53 - domain registar mess...

Thanks.

    (1-4/4)