My setup:
thin running on port 1234 with --prefix /foobar
apache running on port 80
apache reverse proxies /foobar
to thin on port 1234
I would like the static assets to not be served via the proxy to thin, but instead be served at /assets
directly via apache instead.
I have to use a relative path because I don't know the host name/ip of the rails application before startup (it's app-in-a-box that should be able to be moved around).
I found config.action_controller.asset_host
in production.rb
, but I can't set that to a relative path. When I do it gets confused and creates really bogus URLs.
How can I make this work?