相关疑难解决方法(0)

有没有办法获得nginx的当前时间?

我试图将nginx服务器的时间注入HTTP头.

我可以添加到HTTP标头,如下所示:

proxy_set_header HELLO-WORLD 'something';
Run Code Online (Sandbox Code Playgroud)

但是现在,我希望能够将时间注入到HTTP头中,这看起来像这样:

proxy_set_header THE-TIME $time_var;
Run Code Online (Sandbox Code Playgroud)

或类似的东西.

这可能吗?

nginx

10
推荐指数
2
解决办法
1万
查看次数

标签 统计

nginx ×1