小编JVX*_*VXR的帖子

用于tomcat的Nginx反向代理

我有问题让我的nginx + tomcat 7反向代理设置工作.

基本上我想https://192.168.10.101从上游集群/ webapp /中提供内容; 但是我从我的应用程序获得了404页面.

关于什么是错误的任何提示将不胜感激.

我的配置如下.

server {

            server_name 192.168.10.101;
            access_log /var/log/nginx/mysite-access.log;
            listen   443;
            ssl on;
            ssl_certificate    /etc/nginx/ssl/mysite.crt;
            ssl_certificate_key    /etc/nginx/ssl/private/mysite_pvt.key;

                location  / {
                        proxy_redirect off;
                        proxy_pass      https://tccluster/webapp/;
                        rewrite_log     on;

                        proxy_set_header   Host             $host;
                        proxy_set_header   X-Real-IP        $remote_addr;
                        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
                        proxy_max_temp_file_size 0;

                }
}

upstream  tccluster  {
                server   192.168.56.103:8443;
                server   192.168.56.104:8443;
}
Run Code Online (Sandbox Code Playgroud)

reverse-proxy nginx tomcat7

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

不能正确显示x轴标签

我必须在X轴上显示日期,在Y轴上显示Amt.将有8行(系列),每行有n个月的数据.当我绘制图表时,我确实发送了6个月的数据.(一行数据如下所示)

[1251701950000,34.50553] [1254294030000,27.014463] [1256972350000,26.7805] [1259567970000,33.08871] [1262246430000,51.987762] [1264924750000,56.868233]

但是图表显示为http://twitpic.com/1gbb7m

第一个月标签丢失,上个月没有正确对齐,我的flot js代码如下

$.plot($("#lgdGraphTab"),graphData, { 
  xaxis: { 
    mode: "time",  
    timeformat: "%b-%y",
    monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
    minTickSize: [1, "month"]
  },
  yaxis : {
    tickSize: 5 
  },
  series: {
    lines: { show: true , shadowSize:0},
    points: { show: true }
  },
  legend:{  
    container: $('#legendArea'),
    noColumns:8
  },
  clickable: true,
  hoverable: true           
});
Run Code Online (Sandbox Code Playgroud)

time axis flot

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

标签 统计

axis ×1

flot ×1

nginx ×1

reverse-proxy ×1

time ×1

tomcat7 ×1