What is the URL to view my first rails app under Apache?

Dear expert,

I have succesfully created an initial app with Ruby with the following step:

[ewijaya@defiant library]$ pwd /home/ewijaya/public_html/MyRuby/library

[ewijaya@defiant library]$ ruby script/server => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2007-09-01 14:38:48] INFO WEBrick 1.3.1 [2007-09-01 14:38:48] INFO ruby 1.8.6 (2007-03-13) [i686-linux] [2007-09-01 14:38:48] INFO WEBrick::HTTPServer#start: pid=18863 port=3000

However I'm not sure what is the URL so that I can see the Greeting message from WEBrick?

What I have so far is this?

http://defiant.i2r.a-star.edu.sg/~ewijaya/MyRuby/library/

Thanks and hope to hear from you again.

foolishbrat wrote:

Dear expert,

I have succesfully created an initial app with Ruby with the following step:

[ewijaya@defiant library]$ pwd /home/ewijaya/public_html/MyRuby/library

[ewijaya@defiant library]$ ruby script/server => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2007-09-01 14:38:48] INFO WEBrick 1.3.1 [2007-09-01 14:38:48] INFO ruby 1.8.6 (2007-03-13) [i686-linux] [2007-09-01 14:38:48] INFO WEBrick::HTTPServer#start: pid=18863 port=3000

However I'm not sure what is the URL so that I can see the Greeting message from WEBrick?

What I have so far is this?

http://defiant.i2r.a-star.edu.sg/~ewijaya/MyRuby/library/

Thanks and hope to hear from you again.

Try:

http://defiant.i2r.a-star.edu.sg:3000/

Hi Michael,

http://defiant.i2r.a-star.edu.sg:3000/

I tried that but it gives: Firefox can't establish a connection to the server at defiant.i2r.a-star.edu.sg:3000.

Any idea why?

Hello,

Is it a server you control yourself, or could it be possible that there is a firewall blocking connections on port 3000? You could put the -p <portno> switch on to set WebBrick to listen to another port instead.

Rich

Assuming that this is on your local computer, the address is already listed: http://0.0.0.0:3000

which is basically the same as http://localhost:3000

Otherwise, you would need to connect to that box on port 3000 through either its ip or its hostname to see the page, which takes us beyond the scope of rails. If you're having trouble doing that, the port may be blocked by a firewall, etc.

Rein