always run same script in location

basti black.fledermaus at
Thu Sep 22 11:13:15 UTC 2016


i have a script where i can upload files. the uri is like

the location looks like

location ~ ^/foo/(.*.\.pl|cgi)$ {

then a upload url is generatred

the location for the uploaded files looks like

location ~ ^/foo/u/(.+?)(/.*)$ {
fastcgi_param  SCRIPT_FILENAME  /www/;

all is matching expact:
I need to download the file via script. It looks like that the
script is not called at this location.
I only the the "default download" menu of the browser

Best regards

in apache there is  a SetHandler and an Action for doing that. how can i
do in ngx?

More information about the nginx mailing list