简体   繁体   中英

Mod_proxy , apache and node.js in one url

So i got a node.js api server and a apache webserver both on the same server. The problem is the node.js server has to be connected like this (111.111.11:3000) that would be the ip of the server itself and the port of the node attached to it, while the apache server is on the domain itself (mydomain.com).

Now my question is what does mod_proxy actually do? Does it allow me to acess my node routings by just using the apache domain.

For example is i would be needing to acess the routing /api/getbla i would be typing this in the search bar 111.111.11:3000/api/getbla.

Will mod_proxy allow me to do it like this instead mydomain.ocm/api/getbla?

Sorry! I tried myself and it did work. The reversed proxy allowed my node server to act like its a part of apache. Example i could acess the api by just typing the domain name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM