I have installed Apache2.2 + Mongrel and deployed my build on.
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.
In your apache configuration, make sure you have used the following:
ProxyPreserveHost on
Otherwise, when you do your proxying, Apache will simply issue a get
and all the requests will appear to be entered as http://localhost,
which is why all of your links are coming back that way :-).
On Nov 7, 1:35 am, “Vapor …” [email protected]