We are using Moonshine to manage our Rails app (obviously!). We have a requirement that we want to serve various static files from our Rails' public directory.
e.g.
This can be done pretty easily, I think, with a simple name-based virtual host:
<VirtualHost *:80>ServerName foo.example.comDocumentRoot /srv/myapp/shared/public/foo
</VirtualHost>
<VirtualHost *:80>ServerName bar.example2.comDocumentRoot /srv/myapp/shared/public/bar
</VirtualHost>
However, I'm not sure where I'd drop this into our manifest to actually appear in our site config?
Looking through $MOONSHINE/lib/moonshine/manifest/rails/templates/passenger.vhost.erb the assumption is a single name-based virtual host and that any application_manifest.rb items will be applied to that one.
In theory, I'd want to tack on a bunch of additional name-based vhosts at the end of the passenger.vhost.erb declaration. I can hack that in there but I was hoping there's more of a 'blessed' way to make this happen. Any ideas?
Thanks,
--
Matt