javascript - How do I get nodejs to run without a port number on a Apache server -


i have nodejs api application running inside codeigniter environment. im trying access nodejs api's without using port number in url

currently can hit node api at

http://wrl.xx.com:8010/api 

and have accessible through url :

http://wrl.xx.com/api/ 

i tried run reverse proxy no success

<virtualhost *:80> servername wrl.xx.com  proxyrequests off  <proxy *>         order allow,deny         allow </proxy>  proxypass / http://localhost:8010/ proxypassreverse / http://localhost:8010/ proxypreservehost on </virtualhost> 

assuming intend differentiate requests looking nodejs app requests seeking codigniter app seeing /api root path, try:

proxypass /api http://localhost:8010/api proxypassreverse /api http://localhost:8010/api 

see proxypass , proxypassreverse more magic.


Comments