I have a PHP application that is submitted via apache to port 80. I have a nodejs application that works autonomously on port 3000. I want to make ajax requests from client-side code generated by PHP into a nodejs application. The problem in the same origin policy will not allow the use of a different port, and I cannot run both nodejs and apache on port 80.
I would like them both to work on port 80 from a client perspective. How to configure apache to redirect / alias / any specific requests to nodejs application?
Hope this makes sense. Note. Not sure if this is possible, or if I'm going to do it right, open the sentences.
Finbarr
source share