Background

Problem

Utorrent sets up its own webserver which, by default, listens on port 8080.

The ui is then accessed by accessing example.com:8080/gui

My goal is to have subdomain.server.com using reverse proxy.
The problem comes when I discovered that some urls are hard coded to /gui/* which of course breaks things.

I'm now trying to remove that initial /gui from the request using mod rewrite but for some reason it's not working.

I can access the site (I get the utorrent loading screen) but if I check my log I see that all requests to /gui/token.html get a 404 Not Found response, /token.html works just fine if I try it manually though.

I've tried moving the rewrite to the proxy but that doesn't work either.