This is really more of a web server configuration question, but it
like a problem in which RoR’ers would be well versed.
I am running a RoR app on lighttpd behind an Apache proxy (well, reverse
proxy is perhaps more accurate).
Since the requests are being proxied to Lighttpd from the same server,
Rails apps think that the requests are coming from localhost. As such,
anytime an error is encountered in the Rails app, I get the “development
mode” style verbose errors, instead of the production friendly ones.
Does anyone know how to fix this? I have preserve host headers turned
which I thought would’ve fixed it, but it does not. Ideally this would
fix on the web server side as I am also experiencing a similar problem
a PHP app running on the same lighttpd server, but I’ll take anything I
get. Any suggestions?