Welcome! Log In Create A New Profile

Advanced

always run same script in location

basti
September 22, 2016 07:14AM
Hello,

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

https://example.com/foo/bar.pl

the location looks like

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

then a upload url is generatred

https://example.com/foo/u/f28c104/df3d-45ce/example.txt

the location for the uploaded files looks like

location ~ ^/foo/u/(.+?)(/.*)$ {
fastcgi_param SCRIPT_FILENAME /www/example.com/foo/dl.pl;
....
}

all is matching expact:
I need to download the file via dl.pl 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

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

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

always run same script in location

basti September 22, 2016 07:14AM

Re: always run same script in location

basti September 22, 2016 08:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready