title: Nginx status is active but it is not serving
body: <p>I have attached two files in which I am hosting var/www/html files and localhost/:3000</p>
  <p>please help me why nginx not serving when i am hitting ip of server.</p>
  <p>Is there any solution for my problem if so then let me know what changes should I do so that it will work</p>
  <p>I have configure port 81 for this application</p>
  <p>nginx.conf</p>
  <pre><code>user www-data;
  worker_processes auto;
  pid /run/nginx.pid;
  include /etc/nginx/modules-enabled/*.conf;
  
  events {
  worker_connections 768;
   # multi_accept on;
  }
  
  http {
  
   ##
   # Basic Settings
   ##
  
  sendfile on;
  tcp_nopush on;
  tcp_nodelay on;
  keepalive_timeout 65;
  types_hash_max_size 2048;
   # server_tokens off;
  
   # server_names_hash_bucket_size 64;
   # server_name_in_redirect off;
  
  include /etc/nginx/mime.types;
  default_type application/octet-stream;
  
   ##
   # SSL Settings
   ##
  
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  ssl_prefer_server_ciphers on;
  
   ##
   # Logging Settings
   ##
  
  access_log /var/log/nginx/access.log;
  error_log /var/log/nginx/error.log;
  
   ##
   # Gzip Settings
   ##
  
  gzip on
   # gzip_vary on;
   # gzip_proxied any;
   # gzip_comp_level 6;
   # gzip_buffers 16 8k;
   # gzip_http_version 1.1;
   # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml&gt;
  
   ##
   # Virtual Host Configs
   ##
  
  include /etc/nginx/conf.d/*.conf;
  include /etc/nginx/sites-enabled/*;
  }
  </code></pre>
  <p>sites-enabled file</p>
  <pre><code>server {
  listen 81 default_server;
  listen [::]:81 default_server;
  root /var/www/html;
  
   # Add index.php to the list if you are using PHP
  index index.php;
  
  server_name _;
  
  location / {
   # First attempt to serve request as file, then
   # as directory, then fall back to displaying a 404.
  try_files $uri $uri/ /index.php?args;
  }
  location /front/ {
  proxy_pass http://localhost:3000/;
  }
   # pass PHP scripts to FastCGI server
   #
  location ~ \.php$ {
  include snippets/fastcgi-php.conf;
  fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
   #       # With php-cgi (or other tcp sockets):
   #       fastcgi_pass 127.0.0.1:9000;
  }
  
   # deny access to .htaccess files, if Apache's document root
   # concurs with nginx's one
   #
  location ~ /\.ht {
  deny all;
  }
  }
  </code></pre>