I am trying to learn nginx and are tying to make a simple proxy_pass.
I have a simple node application running on http://localhost:9966
My nginx rule is
location /site1 {proxy_set_header X-Real-IP $remote_addr;proxy_set_header Host $http_host;proxy_set_header X-Forwarded-Proto https;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://localhost:9966;}
But what i am getting is /usr/share/nginx/html/site1" failed (2: No such file or directory)
What I am expecting is a request to http://localhost:9966
which will in return respond with the index.html page.