-
Create a file in
/etc/nginx/sites-available
-
Add the following content to the file
server {
listen 80;
location / {
proxy_pass "http://localhost:8080";
}
}
-
Save the file
-
Create symblink
sudo ln -s /etc/nginx/sites-available/{file_name} /etc/nginx/sites-enabled/{file_name}
-
Reload the nginx
sudo service nginx restart