器量大者,福泽必厚
全部博文(587)
发布时间:2015-12-01 15:47:03
测试环境为:Nginx+2台tomcat负载均衡地址信息如下:Nginx: 10.33.96.251Tomcat1:10.33.97.246Tomcat2:10.33.97.247 搭建如下:1:分别在246和247机器上搭建tomcat先安装jdk,我使用的版本为jdk-7u79-linux-x64.tar.gz到/home/目录下解压即可tar zx.........【阅读全文】
发布时间:2014-08-29 15:43:43
Nginx is a lightweight, high performance web server/reverse proxy and e-mail (IMAP/POP3) proxy. It runs on UNIX, GNU/Linux, BSD variants, Mac OS X, Solaris, and Microsoft Windows. According to Netcraft, 6% of all domains on the Internet use nginx webserver. Nginx is one of a handful of servers .........【阅读全文】
发布时间:2014-06-20 16:40:46
转自:http://blog.sina.com.cn/s/blog_5d73ba76010145rr.html首先看一个完整代码示例,关于nginx 301 302跳转的。301跳转设置:server {listen 80;server_name 123.com;rewrite ^/(.*) http://456.com/$1 permanent;access_log off;}302跳转设置:server {listen 80;server_name 123.com;.........【阅读全文】
发布时间:2014-05-10 11:02:25
Name-based virtual serversnginx first decides which server should process the request. Let’s start with a simple configuration where all three virtual servers listen on port *:80:server { listen 80; server_name example.org www.example.org; ...}server { .........【阅读全文】