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

**URL:** <https://www.ruby-forum.com/t/what-is-the-url-to-view-my-first-rails-app-under-apache/113534>\
**Category:** Rails\
**Created:** [September 1, 2007, 8:44am UTC](https://www.ruby-forum.com/t/what-is-the-url-to-view-my-first-rails-app-under-apache/113534 "2007-09-01T08:44:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [September 1, 2007, 8:44am UTC](https://www.ruby-forum.com/t/what-is-the-url-to-view-my-first-rails-app-under-apache/113534/1 "2007-09-01T08:44:17Z")

</div>

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](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/](http://defiant.i2r.a-star.edu.sg/~ewijaya/MyRuby/library/)

Thanks and hope to hear from you again.

---

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [September 1, 2007, 9:47am UTC](https://www.ruby-forum.com/t/what-is-the-url-to-view-my-first-rails-app-under-apache/113534/2 "2007-09-01T09:47:21Z")

</div>

foolishbrat wrote:

> =\> Booting WEBrick…
> 
> What I have so far is this?
> 
> [http://defiant.i2r.a-star.edu.sg/~ewijaya/MyRuby/library/](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/](http://defiant.i2r.a-star.edu.sg:3000/)

–  
Michael W.

---

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [September 1, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/what-is-the-url-to-view-my-first-rails-app-under-apache/113534/3 "2007-09-01T17:07:20Z")

</div>

Hi Michael,

> [http://defiant.i2r.a-star.edu.sg:3000/](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?

---

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [September 2, 2007, 2:49am UTC](https://www.ruby-forum.com/t/what-is-the-url-to-view-my-first-rails-app-under-apache/113534/4 "2007-09-02T02:49:07Z")

</div>

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 switch on to set WebBrick to listen to another port  
instead.

Rich

---

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [September 3, 2007, 10:02am UTC](https://www.ruby-forum.com/t/what-is-the-url-to-view-my-first-rails-app-under-apache/113534/5 "2007-09-03T10:02:07Z")

</div>

RichM wrote:

> Hello,

Hi Rich,

> Is it a server you control yourself?

I don’t have control to the server (I’m not an SU).  
I stored all my files under “public\_html”.

> You could put the -p switch on to set WebBrick to listen to another port instead.

Where can I apply the “-p” switch?

–  
Edward

---

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [September 2, 2007, 4:32am UTC](https://www.ruby-forum.com/t/what-is-the-url-to-view-my-first-rails-app-under-apache/113534/6 "2007-09-02T04:32:15Z")

</div>

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

which is basically the same as [http://localhost:3000](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
