I am trying to run node js
and apache
in a same server for that
I am trying to pipe all requests to a particular port (eg: example.com:80 to example.com:3000).
For that, I changed httpd.conf file located in "/etc/httpd/conf/httpd.conf
"
Added these lines st the end
<VirtualHost *:80>
ServerName mysite.com
ProxyPreserveHost on
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
and restarted using sudo service httpd restart
but nothing changed.
There are more 2 httpd.conf files available ->
/usr/local/apache/conf/httpd.conf
/etc/httpd/conf/httpd.conf
/etc/apache2/conf/httpd.conf
at the end of /etc/apache2/conf/httpd.conf
file I saw this:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# DO NOT EDIT. AUTOMATICALLY GENERATED. USE INCLUDE FILES IF YOU NEED TO MAKE A CHANGE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
I cannot understand the line USE INCLUDE FILES IF YOU NEED TO MAKE A CHANGE
.
What should I do????
from pipe all requests to a particular port - node js application
No comments:
Post a Comment