March 2019
Intermediate to advanced
350 pages
7h 28m
English
As I mentioned previously, we need to set up a reverse proxy server to send the traffic from port 80 (HTTP) to port 3000 (React app). To do this, you need to open the following file:
sudo vi /etc/nginx/sites-available/default
The steps are as follows:
location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade;}
sudo nginx -t
Read now
Unlock full access