[Mongrel] Links go to 'localhost'

Cynthia Kiser cnk at caltech.edu
Wed Nov 7 11:13:04 EST 2007

Quoting Geek Moth <geekmoth at gmail.com>:
> I am using Apache2.2 + Mongrel on my machine.
> Now I am accessing it over LAN. When I enter http://mymachinename/myapp
> it opens fine but when I click on any link in my rails app, it replaces
> mymachinename with localhost (http://localhost/myapp/controller/action)
> and thus I am unable to access it from remote location.

Why are your links absolute urls at all? Are you using absolute or
relative link syntax in your rails app? W/o more info, it isn't clear
where the 'http://localhost/' part is being introduced into the equation.
Cynthia Kiser

More information about the Mongrel-users mailing list