port 3000 on apache

271 views
Skip to first unread message

Leandro T.

unread,
Jan 23, 2008, 3:28:28 PM1/23/08
to rubyonra...@googlegroups.com
this may be more of a web server question...

i can see:

http://localhost
http://localhost:3000
http://127.0.0.1
http://127.0.0.1:3000
http://192.168.16.128 (localhost ip address)
http://hostname (localhost name)

i CAN'T see:

http://192.168.16.128:3000
http://hostname:3000

what is wrong? is it a web server (apache2) configuration???
--
Posted via http://www.ruby-forum.com/.

heimdull

unread,
Jan 23, 2008, 3:45:16 PM1/23/08
to Ruby on Rails: Talk
Yes this is a apache issue.

Please post the httpd.conf file.

If you are trying to forward requests to port 3000 using apache take a
look at mod_proxy... Doing something like this:

<Proxy balancer://rails_cluster>
BalancerMember http://127.0.0.1:3000
</Proxy>

<VirtualHost *:80>
ProxyPass / balancer://my_cluster/
ProxyPassReverse / balancer://my_cluster/

more stuff...

</VirtualHost>

Frederick Cheung

unread,
Jan 23, 2008, 4:05:45 PM1/23/08
to rubyonra...@googlegroups.com

On 23 Jan 2008, at 20:28, Leandro T. wrote:

>
> this may be more of a web server question...
>
> i can see:
>
> http://localhost
> http://localhost:3000
> http://127.0.0.1
> http://127.0.0.1:3000
> http://192.168.16.128 (localhost ip address)
> http://hostname (localhost name)
>
> i CAN'T see:
>
> http://192.168.16.128:3000
> http://hostname:3000
>
> what is wrong? is it a web server (apache2) configuration???

Possibly. Could also be a firewall problem. It wouldn't be that
surprising if there were rules to the effect of 'allow anything on
the loopback interface', 'only allow port 80 on other interfaces'

Fred

Ryan Bigg

unread,
Jan 23, 2008, 5:55:17 PM1/23/08
to rubyonra...@googlegroups.com
Might be because he's binding it to 127.0.0.1. Try specifying -b 0.0.0.0. It looks to me like you're running a standard Rails server.

--
Ryan Bigg
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.

Leandro T.

unread,
Jan 24, 2008, 8:11:32 AM1/24/08
to rubyonra...@googlegroups.com

apache2 doesn't have an httpd.conf file... what exactly are you looking
for? i'm not trying to forward requests to port 3000. i just want to be
able to access:

so that i can see the site from anywhere on my lan.

Leandro T.

unread,
Jan 24, 2008, 8:13:17 AM1/24/08
to rubyonra...@googlegroups.com

hi ryan,

could you be more specific? i'm not sure what you mean by "specifying -b
0.0.0.0"
is this a command line option? what command?

thanks!

Leandro T.

unread,
Jan 24, 2008, 8:48:03 AM1/24/08
to rubyonra...@googlegroups.com

my iptables are empty. no firewall.

Reply all
Reply to author
Forward
0 new messages