将nginx服务器设置打印到页面上。

当用户导航到特定位置时,我需要输出proxy_pass地址。我需要安装http://openresty.org/来完成这个任务吗?

set $gateway_proxy http://myproxy.com;

location /gateway {
    default_type text/html;
    echo $gateway_proxy;
}
点赞