@Lukas do you mean something like this location = /upload { proxy_pass http://mywebsite.com/upload; } server { listen 80; server_name mywebsite.com; location = /upload { <module settings goes here> } } Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268988,269037#msg-269037