title: How to run java jars on nginx server locally?
body: <p>I pretty new to Nginx and I want to run some java jars on Nginx server in my local machine. How can I achieve this?</p>
  
  <p>I have downloaded nginx for windows from <a href="http://nginx.org/en/download.html" rel="nofollow noreferrer">http://nginx.org/en/download.html</a> 
  My Nginx version : 1.16.1
  My java jars are in the folder - E:\myapp 
  How do I point my java jars location in my Nginx server config?</p>
  
  <p>My Nginx Server config is as below (nginx.conf)</p>
  
  <pre><code>#user  nobody;
  worker_processes  1;
  
  #error_log  logs/error.log;
  #error_log  logs/error.log  notice;
  #error_log  logs/error.log  info;
  
  #pid        logs/nginx.pid;
  
  
  events {
      worker_connections  1024;
  }
  
  
  http {
      include       mime.types;
      default_type  application/octet-stream;
  
      #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
      #                  '$status $body_bytes_sent "$http_referer" '
      #                  '"$http_user_agent" "$http_x_forwarded_for"';
  
      #access_log  logs/access.log  main;
  
      sendfile        on;
      #tcp_nopush     on;
  
      #keepalive_timeout  0;
      keepalive_timeout  65;
  
      #gzip  on;
  
      server {
          listen       3000;
          server_name  localhost;
  
          #charset koi8-r;
  
          #access_log  logs/host.access.log  main;
  
          location / {
              alias E:\myapp
          }
  
          error_page   500 502 503 504  /50x.html;
          location = /50x.html {
              root   html;
          }
  
      }
  
  }
  </code></pre>