Forum: Rails deployment Struggling with nginx, UJS and asset server

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
58c6efb8466b9f85155fe6aa9fc37fce?d=identicon&s=25 Chris T (Guest)
on 2007-03-27 19:31
(Received via mailing list)
Sure this is a dead simple one, but I'm struggling with the right config
for nginx to enable to requests for the UJS (Unobtrusive Javascript) to
pass through to the mongrels. Worked all fine and dandy using Ezra's
latest nginx config file, until I enabled the
action_controller.asset_host in the production environment (I have nginx
serving the static files, passing the other requests through to a
mongrel_cluster on another box).

What seems to be happening is that nginx is trying to serve up the UJS
js file (and sending a big fat nothing), rather than passing it on.

Any pointers?

This topic is locked and can not be replied to.