I have a raspberry pi, that is running a local webserver using apache, on the same machine I have some software that is controlled by a web interface but on a different port number on the same machine. Is there anyway that I can get apache to sort of proxy this interface into a sub directory. So that effectively any requests that a re received for say -http://raspberrypi.local/cctv are displaying results from what would be -http://localhost:8685 I wondered if it could be done with mow_rewrite but wasn't entirely sure it was possible as it isn't actually apache that servers the cctv data? Thanks in advance.
You should be able to achieve this with Apache mod_proxy instead of mod_rewrite. Please check their documentation for more details.