I have two versions of a very small ruby-on-rails apps running on my web server. One is served externally (production) and one is served only on an intranet URL (staging). So I have two Virtual Hosts setup and they work well.
My goal is to serve up the generated documentation for the code base underneath the domain of the staging server, but just setup a different vhost and docroot and dump all the static HTML files there. I'm unclear how to set this up in httpd.conf.
So, the goal is to have:
staging.foo.com/ -> rails app vhost (pointed at /var/www/rails/foo/)
staging.foo.com/doc/ -> documentation vhost (pointed at /var/www/doc/foo/)
Sorry about the clumsiness of the question; I'm pretty sure this can be done with mod_rewrite but after reading through the docs several times I'm still lost as to how to accomplish this Feat of Strength.