- sudo systemctl start nginx
- sudo systemctl status nginx
- sudo systemctl enable nginx (startup)
- vim /etc/nginx/sites-enabled/default and add the server config there:
server {
listen 80;
listen [::]:80;
server_name oldblog.muscalu.net;
location / {
proxy_pass http://127.0.0.1:3001/; } } server { listen 80; listen [::]:80; server_name cristian.muscalu.net; location / {
proxy_pass http://127.0.0.1:3000/; } } - done