I use Apache to serve the static pages and let Mongrel handle Rails
requests via mod_rewrite/proxy.  Apache RewriteRule can set
environment variable on the fly, and this is one of the features I
used, set an env var based on domain name.

I used to use SCGI Runner which was fine as the env var was passed to
Rails via scgi protocol.  I seems can't find a way to set env var in
Mongrel on the fly.

One work around I can think of is to append a variable to the query
string, but that's less elegant nor secure.

Any thoughts?

Thanks,
Kevin

_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to