I have set up a project on my local machine (Win8, XAMPP), the URL http://local.project.com
maps to 127.0.0.1
in my hosts
file.
When the application calls XHRs with the base URL http://local.project.com:8080/
apache should forward this request to another server in my network (e.g. 192.168.35.16:8080
).
So for example:
http://local.project.com/index.js
should point to http://local.project.com/index.js
http://local.project.com:8080/index.js
should point to http://192.168.35.16:8080/index.js
How can I achieve this with Apache?