# Struggling with nginx, UJS and asset server

**URL:** <https://www.ruby-forum.com/t/struggling-with-nginx-ujs-and-asset-server/90319>\
**Category:** Deployment\
**Created:** [March 27, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/struggling-with-nginx-ujs-and-asset-server/90319 "2007-03-27T19:31:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a8b319/32.png) [@Chris\_T](https://www.ruby-forum.com/u/Chris_T)\
**Post date:** [March 27, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/struggling-with-nginx-ujs-and-asset-server/90319/1 "2007-03-27T19:31:23Z")

</div>

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?

Thanks  
Chris
