小编dra*_*fly的帖子

nginx总是从服务器获取

我正在尝试将nginx设置为缓存反向代理,但是看起来每个请求都已发送到后端服务器,并且没有任何缓存.即后端的服务器日志显示所有相同的文件访问.

大多数文件都是带有在url或图像上传递的参数的php,所有这些文件都是从后端一直提取的,从不缓存.可以缓存此站点上的所有内容.

我的conf.d/default.conf

upstream xxxx  {
      server xxxx.com;
}

#
# The default server
#
server {
    listen   80 default_server;
    server_name  _;

    access_log  /var/log/nginx/log/access.log  main;
    error_log  /var/log/nginx/log/error.log;

    root   /usr/share/nginx/html;
    index  index.html index.htm;


    location / {
    ## send request back to xxxx ##
     proxy_pass  http://xxxx;
     proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;

#     expires 24h;
#    add_header        Cache-Control public;
     proxy_ignore_headers Cache-Control Expires;

     proxy_redirect off;
     proxy_buffering off;

     proxy_cache               one;
     proxy_cache_key         backend$request_uri;
     proxy_cache_valid       200 301 302 1440m;
     proxy_cache_valid       404 1m;
     proxy_cache_valid       any …
Run Code Online (Sandbox Code Playgroud)

php caching nginx

1
推荐指数
1
解决办法
580
查看次数

是否可以从 Grafana 的堆积线图中排除一个系列

我家里有很多电表,还有一个全屋电表,所有这些都向 influxdb 报告,我用 grafana 绘制图表。

我想要的是一个图表,其中所有仪表读数与整个房屋仪表分开堆叠,我希望将其显示在同一个图表上但不堆叠。

有人知道这是否可能吗?

graph stacked-chart influxdb grafana

1
推荐指数
1
解决办法
1141
查看次数

标签 统计

caching ×1

grafana ×1

graph ×1

influxdb ×1

nginx ×1

php ×1

stacked-chart ×1