S
S
StynuBlizz2017-07-10 05:49:43
Nginx
StynuBlizz, 2017-07-10 05:49:43

How to concatenate variables in nginx?

You need to upload a video, but before that you need to upload a cover for the video, for this you need to add the word "cover" to the file name. I do it like this:

location /get {
     root /path/to/file/$arg_name+cover

This code does not work, so I have a question, how can strings be combined in nginx?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2017-07-10
@StynuBlizz

This is how it should work:
root /path/to/file/${arg_name}cover

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question