<div><span class="gmail_quote">On 11/7/07, <b class="gmail_sendername">Geek Moth</b> <<a href="mailto:geekmoth@gmail.com">geekmoth@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
I am using Apache2.2 + Mongrel on my machine.<br>Now I am accessing it over LAN. When I enter <a href="http://mymachinename/myapp">http://mymachinename/myapp</a><br>it opens fine but when I click on any link in my rails app, it replaces
<br>mymachinename with localhost (<a href="http://localhost/myapp/controller/action">http://localhost/myapp/controller/action</a>)<br>and thus I am unable to access it from remote location.</blockquote><div><br class="webkit-block-placeholder">
</div><div>Geek,</div><div><br class="webkit-block-placeholder"></div><div>It sounds to me like your apache is not passing the hostname through properly. Not enough information here for me to help more than that.</div><div>
<br class="webkit-block-placeholder"></div><div>Good luck,</div><div><br class="webkit-block-placeholder"></div><div> ~Wayne </div><br> </div>