1

I would like to proxy specific URL paths to different internal ports:

example.com/transmission -> localhost:9091
example.com -> standard apache file server

I have the following in my apache conf file:

ProxyPass /transmission/ http://localhost:9091/
ProxyPassReverse /transmission/ http://localhost:9091/

The problem is that if I access example.com/transmission, it hits localhost:9091 fine, and then gets forwarded to example.com/transmission/web which produces a 'file not found' error.

For some reason, the exact path /transmission is working, but /transmission/anythingelse is not. I have played around with various combinations of adding/removing slashes, but to no avail.

mgorven
  • 30,615
  • 7
  • 79
  • 122
mrwooster
  • 243
  • 3
  • 7

1 Answers1

2

Use the ProxyPassMatch directive instead.

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84