IAm*_*sta 4 nginx
我正在尝试在 nginx 中使用一个变量server_name,但不起作用。这可能吗?
server_name
server { listen 80; index index.php index.html; set $foo "bar.example.com"; server_name $foo; }
use*_*517 6
不,这是不可能的,除非您想将其设置为完全 $hostname 变量。
参考:
http://nginx.org/en/docs/http/server_names.html
基于 $hostname 的 nginx server_name
归档时间:
9 年 前
查看次数:
22351 次
最近记录: