HI,
I have compiled newest version of nginx (nginx/1.1.1) with nginx upload
module (v 2.2.0), also the example config (nginx.conf) was copied from
GitHub - vkholodkov/nginx-upload-module: A module for nginx web server for handling file uploads using multipart/form-data encoding (RFC 1867). into nginx direcoty.
The html form is also copied from this location. So the installation and
configuration is oryginal now without any changes.
I’m getting some errors while uploading the file;
The html form: ‘502 Bad Gateway’;
The nginx error.log (/usr/local/nginx/logs/error.log):
2011/09/05 08:35:15 [error] 21161#0: *6 connect() failed (111:
Connection refused) while connecting to upstream, client: 192.168.0.165,
server: , request: “POST /upload HTTP/1.1”, upstream:
“http://127.0.0.1:8080/upload”, host: “192.168.0.127”, referrer:
“http://192.168.0.127/http/upload.html”
Maybe it’s a problem of my wrong understanding how does it works, I do
not understand why in this example config the proxy_pass is going
through local 8080 port but the server in this configuration is not
listening on such port.
Please help.
–
best regards
Piotr P.