I'm trying to set up a reverse proxy with Apache, and for the most part it is working well with
ProxyPass. I would like to exclude one of the directories which I understand I can do with the
! indicator, documented here: http://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypassreverse
So I have:
ProxyPass /examples ! ProxyPass / http://localhost:3000/
That works okay if I go to a file in
/examples which exists, but if I hit an address which results in a 404 error, the request gets proxied rather than just the 404 being returned.
I would rather the 404 is returned. I couldn't see anything about this in the documentation - does anyone know how it can be done? Many thanks!
This is with Apache v2.4.6.