Hi Chris,
In case you haven't already solved this problem of running multiple
rails apps under the same domain via apache, ... try mod'ing your app-
specific proxypass/reverse directives like:
...
ProxyPass /employees http://localhost:3000/employees
ProxyPassReverse /employees http://localhost:3000/employees
...
ProxyPass /turindata http://localhost:3001/turindata
ProxyPassReverse /turindata http://localhost:3001/turindata
...
Reload or restart apache, and you should then be able to hit those two
apps as intended:
http://192.168.1.1/employees
http://192.168.1.1/turindata
The only other issue you might have, depending on what those two apps
do and how they're implemented, is dealing with in-app static file
ref's not being found/returned via apache.
For example say the employees app had the following img ref in one of
the view templates: ... <img src="/images/some-img.png" .... If you
were hitting that app via localhost, your browser would fetch that img
from http://localhost:3000/images/some-img.png. Under your apache
setup, that file would be fetched from http://192.168.1.1/images/some-img.png.
So, you'll likely need to setup your apps / apache / sys in a way that
apache can find/return those static public files ref'd by each app
proxy'd under that one domain (since you're wanting to serve those
apps under the same domain).
There are a number of ways to deal with this, both via apache
directives and rails app/config tweaks, but one fairly easy agnostic
(?) kludge is to just use symbolic links:
(following is unix/linux example, but should be translatable to
windows)
### create sym link to app's pub dir under that pub dir:
$ cd /path-to-employees-app/public
$ ln -s . ./employeespub
### create sym link to app's pub dir under main virt host domain
documentroot:
$ cd /path-to-domain-documentroot/htdocs
$ ln -s /path-to-employees-app/public ./employeespub
### then make sure your app's static file refs point to that new sym-
link:
... <img src="/employeespub/images/some-img.png" ...
### done.
After that, all of your app-specific static file refs should work
under both localhost (ie http://localhost:3000/employeespub/images/some-img.png)
and apache (ie http://192.168.1.1/employeespub/images/some-img.png).
Jeff