I want to add some behavior processing to the HTTP request and example.comxxxx.apk while accessing the browser, rather than directly downloading. The idea is to configure the redirection on nginx, but it does not play a role {code ...} ask for other ideas or ways to handle the http request, similar to the http://example.com/xxxx.apk in the browser access to add some behavior processing rather than direct download
The idea is to configure the redirection on nginx, but it does not work.
Location/{rewrite ^/(.apk) $/index. php/$1 last ;}
Ask for other ideas or solutions
Reply content:
To process http requests, like a http://example.com/xxxx.apk that adds behavior to browser access rather than directly download
The idea is to configure the redirection on nginx, but it does not work.
Location/{rewrite ^/(.apk) $/index. php/$1 last ;}
Ask for other ideas or solutions
Yes. I can add an answer. rewrite is at the wrong position.
Location ~ \. Apk {rewrite ^/(. *) \. apk $/index. php/$1 last ;}