What I want to do has probably been done before:
- Have httpd reverse proxy to a particular port with a particular port, similarly to the way you do with unicorn
- Have the root uri be configurable for different environments
- The goal is to have developers be able to show their work in a proxied sub-path on port 80:
Well, that works with the asset pipeline:
config.relative_url_root = '/whatever'
But it works less well in routing:
scope "dan" do
root :to => redirect('/dan/home')
get "home" :to => "home#index"
What is the best way to make this scoping code dynamic and simple to maintain?