I have a FreeBSD machine acting as NAT/web/mail server and a couple of machines on the internal network. One of them is Mac OS X 10.5 Server running Apache 2.2 with load balancer and reverse proxy which I would like to use to deploy ruby on rails aplication.
The OSX machine has internal IP address 192.168.168.237, mongrel is started with 4 instances on ports 3000-3003 and apache load balancer pointed to 4 instances. It works great on the local network.
I would like to use mod_rewrite on the NAT server to redirect communication to the OSX server so:
jobs.example.com points to the web server running on 192.168.168.237 and is accessible from the internet. Enclosed is my apache virtual server settings.
When I use the jobs.example.com address in the browser, it shows the rails application, but when I attempt to login, it _switches_ to internal network:
http://jobs.example.com/login ------>
http://192.168.168.237/projects/show/Does anybody have an idea how to get it to work?
Start Free Trial