Setting up HTML page on port 8083 in NGINX

15 Views Asked by At

I have been given a task in which I have to host an HTML page on port 8083. Now when I was followinf the steps of installing NGINX from this page there was this piece of code:

server {
   listen 81;
   listen [::]:81;

   server_name example.ubuntu.com;

   root /var/www/tutorial;
   index index.html;

   location / {
           try_files $uri $uri/ =404;
   }
} 

My question is that if I replace 80 with 8083 will it do the trick and if yes then how can I check it?

0

There are 0 best solutions below