we’ll open the 000-default.conf default configuration file in order to make edits
1 2 3 4 5 |
sudo nano 000-default.conf |
Add below line
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3002/
ProxyPassReverse / http://127.0.0.1:3002/
1 2 3 4 5 6 7 |
sudo a2enmod sudo a2enmod proxy sudo a2enmod proxy_http |
1 2 3 4 5 |
sudo systemctl reload apache2 |
1 2 3 4 5 |
sudo systemctl stop apache2 |
1 2 3 4 5 |
sudo systemctl start apache2 |
More Stories
Connect MQTT with Node.js
Video streaming using Node.js and HTML5
Stream audio from the microphone