Answer the question
In order to leave comments, you need to log in
How to use nginx to give a file whose name is generated by a script?
I do CNC . I would like nginx to do rewrite not based on the regular expression from the config, but based on the result of the script.
Like something like this:
location /products {
proxy_pass localhost:1234/getProductFileName.js
rewrite ^(.*)$ proxy_pass_result
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question