Skip to main content

can nginx set variable from file? [Resolved]

server {
    set $serverNames /www/test.txt;
    server_name $serverNames;
    ...

I want to know if I can read the content from the text and assign it to the variable.I tried the above code and it didn't work.


Question Credit: 王肖毅
Question Reference
Asked October 10, 2018
Tags: nginx
Posted Under: Network
16 views
1 Answers

Your Answer
D:\Adnan\Candoerz\CandoProject\vQA