hi can some one explain how this works..
in the httpd.conf file from the Apache web server where Dispatcher is configured
Add the details as PROXY-NAME PROXY-URL at the end of the file.
So whenever there is a call to /maps/search the respective url is called in java script directly for example
var url = /maps/search ;
Here is one of the simplistic explanation - Reverse Proxy Guide - Apache HTTP Server Version 2.4
Your js code will execute the request on browser which traverses through several layers and goes to your apache server. Apache would use mod_proxy configs to fetch the response of /maps/search from target/backend servers and return it back to the browser.
ProxyPass will fetch '/maps/search' from http://servername.test.org:8380/sitese
ProxyPassReverse would modify the 'Location' header for the same request to ensure that the request came from apache/proxy server