• Nginx反向代理一般化配置

    日期:

    server { listen 80; server_name www.it.net.cn; location / { return 404; proxy_pass http://127.0.0.1:81; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwa...

  • nginx忽略.svn和.git

    日期:

    1 location ~ ^(.*)/\.(svn|git)/ { 2 deny all; 3 }...

  • nginx 1.9.14 发布

    日期:

    nginx 1.9.14 发布了。 主要改进如下: *) Feature: OpenSSL 1.1.0 compatibility. *) Feature: the proxy_request_buffering, fastcgi_request_buffering, scgi_request_buffering, and uwsgi_request_buffering directives now work with HTTP/2. *) Bugfi...

  • HttpStubStatusModule

    日期:

    Synopsis This module provides the ability to get some status from nginx. This module is not compiled by default and must be specified using the --with-http_stub_status_module argument to configure when compiling Nginx. Example: location /n...

  • Linux下Nginx+Tomcat整合的安装与配置

    日期:

    一、安装Tomcat和JDK 1、上传apache-tomcat-6.0.18.tar.gz和jdk-6u12-linux-i586.bin至/usr/local 2、执行如下命令安装tomcat: #cd /usr/local #tar zxvf apache-tomcat- 6.0 . 18 .tar.gz 解压完成后将apache-tomcat-6.0.18重命名为tomcat 3、执行如下命令...

  • nginx的stub_status状态信息解释

    日期:

    一、加载http_stub_status模块 [root@10.10.90.97 ~]# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module [root@10.10.90.97 ~]# make make install 二、修改nginx配置文件 在server中,添加如下代码: location /NginxStatus { stub_s...

  • cacti监控nginx出现 no (LWP::UserAgent not found)

    日期:

    当你使用cacti监控nginx性能时可能会出现 no (LWP::UserAgent not found) 的错误。经过我两台VPS环境对比发现的确原因是系统 perl 缺少了相关组件,但是解决办法却不是网络上搜出来的那些 cpan install LWP::UserAgent 经过对比发现,缺少的是perl-libwww-pe...

  • 为 Cacti 添加 Nginx status 监控

    日期:

    关于这一内容,在google上一搜就大把.内容如下: nginx编译时允许http_stub_status_module 然后在 nginx.conf 中 添加如下(粗体字部分) server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / {...

  • Cacti如何监控Nginx运行状态

    日期:

    Cacti如何监控Nginx运行状态:Cacti和Nagios是现在比较用得多的网络监控软件。Cacti偏重于网络流量,系统负载方面的监控。Nagios则比较注重于主机和服务的监控。本文讲述的是Cacti如何监控Nginx运行状态。 Cacti监控Nginx运行状态的方法 Cacti或者是Cactiez...

  • nginx在ubuntu上的安装

    日期:

    1、安装Nginx apt-get install nginx (要最新版本下载下来编译吧) 装完应该能正常运行了。如果之前有装APACHE要改下端口。。。或者直接 apt-get remove apache2 /etc/init.d/nginx stop /etc/init.d/nginx start 2、安装php-cgi apt-get install php-cgi (...