Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to come up with a configuration for utorrent server using nginx. Here is what I have so far:

server {
  # etc...

  location /utorrent {
    proxy_redirect    off;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

I have other locations defined as well. The problem is that the static assets on the root path such as /whatever.js are hitting my true root path and not the reverse proxy. Do I need a rewrite rule to handle this? If so, what should it be. I've tried a ton of different combinations. One of those was to have a regular expression in the location definition and then proxy pass to with a rewrite to get the final destination to /gui/ but I couldn't get that to work either.

Any help is appreciated. Thanks!

share|improve this question
Should requests to been proxied to – slimsuperhero Jun 26 '13 at 14:02
Yes. That's what needs to happen. – astjohn Jul 12 '13 at 12:07
do you have other stuff in root location needs to be served or proxied to another backend? – DukeLion Sep 29 '15 at 3:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.