Here is a simplified version of the config.I get 405 (Method not
allowed).Documentation for the module say that the error happen if the
request method is not POST 

http://www.grid.net.ru/nginx/upload.en.html 


server { 
listen 443 http2; 
location = /upload { 
proxy_pass http://mywebsite.com/upload; 
} 
} 

server { 
listen 80; 
server_name mywebsite.com; 
location = /upload { 
#module settings goes here 
upload_pass @uploadhandler; 
} 

location @uploadhandler { 
root /var/www/mywebsite.com/public_html/www; 
rewrite ^ /upload.php last; 
} 

} 

Thanks for the help Lukas

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,268988,269054#msg-269054

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to