- 浏览: 1255224 次
- 性别:
- 来自: 常州
文章分类
- 全部博客 (499)
- java (101)
- linux (82)
- mysql (30)
- javascript (45)
- Oracle (12)
- ext (14)
- 虚拟机 (1)
- 搜索引擎 (2)
- struts2 (11)
- 设计模式 (9)
- nginx (17)
- tomcat (12)
- 随想 (10)
- spring (18)
- svn (1)
- flash (3)
- UML (1)
- 数据结构 (7)
- 算法 (2)
- 网摘 (9)
- 数据库 (15)
- ibatis (3)
- jquery (31)
- lucene (1)
- hibernate (14)
- Myeclipse (4)
- 线程 (7)
- jbpm (4)
- 重构 (1)
- mantis (3)
- MediaWiki (4)
- ExtMail (1)
- MDaemon (1)
- egit (1)
- dwr (7)
- sitemesh (2)
- mybatis (1)
- ico (1)
- hadoop (5)
- jsoup (1)
- urlrewrite (2)
- jstl (1)
- spring3 (2)
- aop (2)
- 定时器 (1)
- Quartz (2)
- apache (1)
- php (1)
- security (1)
- iptables (2)
- QQ (1)
- mysqldump (1)
- vim (1)
- memcached (4)
- jad (1)
- 微博 (1)
- html5 (1)
- css3 (1)
- httpclient (10)
- google (1)
- shortUrl (1)
- json (2)
- virtualBox (1)
- mantisBT (2)
- htmlunit (1)
- selenium (2)
- mail (1)
- 正则表达式 (4)
- html (3)
- css (2)
- jatoolsPrinter (1)
- 图片处理 (1)
- hql (1)
- webservice (1)
- 分词 (3)
- 短信 (1)
- VPS (1)
- 事务 (1)
- 广告 (1)
- 画廊 (1)
- git (3)
- github (1)
- openshift (1)
- 缓存 (1)
- web (3)
- android (3)
- c3p0 (1)
- 邮箱 (1)
- memcache (2)
- windows (2)
- js (14)
- 编辑器 (1)
- 打印 (1)
- centos (5)
- boneCP (1)
- 连接池 (1)
- sql (1)
- nosql (1)
- MongoDB (1)
- 浏览器 (1)
- node (1)
- node.js (1)
- backbone.js (1)
- lazyload (1)
- Switch Off (1)
- Titanium (1)
- 网站架构 (1)
- WebDriver (1)
- APJP (1)
- 代理 (1)
- comet (1)
- kendoui (1)
- UI (2)
- 互联网 (1)
- localStorage (1)
- 记录 (1)
- 微信 (2)
- Sphinx (1)
- netty (1)
- js,mvvm,Avalon (1)
- 安卓 (1)
- Tengine (1)
- 大数据 (1)
- 手机 (1)
- paypal (1)
- SaaS (1)
- gitlab (1)
- nodejs (1)
- React (1)
- shadowsocks (0)
- vpn (0)
- 验证码 (1)
- SSL (2)
- SEO (1)
- IntelliJ (1)
- 敏捷开发 (1)
- 项目管理 (1)
- 爬虫 (1)
- 正则 (1)
- owncloud (1)
- 云存储 (1)
- ajax (1)
- pjax (1)
- jdk (1)
- zookeeper (1)
- phantomjs (1)
- ELK (1)
- springcloud (1)
- IDEA (1)
- hexo (1)
- ss (1)
- letencrypt (1)
最新评论
-
peakandyuri:
这个是有BUG的,数字小体现不出来,数字大了就不对了,但是Ja ...
java十进制转换N进制并反转换的工具类 -
ginolai:
然后是相关配置:/etc/sysconfig/iptables ...
Linux中iptables设置详细 -
bzhao:
我测试没啥区别啊!
Thread.sleep()和Thread.currentThread().sleep()区别 -
zhl549342097:
match == false
Spring Security 3.1 中功能强大的加密工具 PasswordEncoder -
hellotieye:
renzhengzhi 写道drager 写道用jsoup后解 ...
jsoup select 选择器
http://www.oschina.net/code/snippet_12_175
http://blog.csdn.net/21aspnet/article/details/6573825
http://www.oschina.net/question/59889_25385
下面一段是我成功配置的代码:
#这段是防止直接IP访问或者未绑定域名访问的配置 server{ listen 80 default; server_name _; return 403; } server { listen 80; server_name xxx.com; location / { rewrite ^(.*) http://www.xxx.com$1 permanent; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } server { listen 80; server_name www.xxx.com; #charset koi8-r; #access_log logs/host.access.log main; #location / { # root html; # index index.html index.htm; #} location ~ ^/(WEB-INF)/ { deny all; } location ~ ^/(images|styles|scripts)/ { root /usr/java/static/xxx; access_log off; expires 24h; } location ~ ^/(.*)$ { proxy_pass http://localhost:8181; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 10m; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 4k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} }
发表评论
-
SSL证书与Https应用部署小结
2015-10-12 22:54 1122引用原文地址:http://han.guokai.bl ... -
nginx缓存动态页面功能的设置
2015-10-12 22:14 5554网上查了一下相关资料,主要是在需要缓存的路径加proxy_ ... -
Tengine:合并多CSS/JS为一次响应
2015-01-21 13:56 1784Tengine是由淘宝网发起 ... -
nginx处理web请求分析
2014-09-17 15:41 883Nginx是什么?Nginx是俄 ... -
nginx维护页面处理-全部URL指向同一个页面
2014-09-17 13:15 3669一般来说nginx的维护页面需要把所有访问本站的链接全部重定 ... -
nginx启动服务脚本
2014-09-03 11:49 1051#chkconfig: 345 60 60 #!/bin/ ... -
Nginx反向代理&前端全缓存相关配置教程【转】
2012-12-13 11:25 1325最近一直在研究这方面的配置,只是脚本比较复杂。在网上用力 ... -
查看网站页面速度并评分的网站
2012-03-09 02:47 1061http://gtmetrix.com/ -
nginx前端代理tomcat取真实客户端IP
2012-03-08 01:01 2514使用Nginx作为反向代理时,Tomcat的 ... -
nginx中禁止屏蔽网络爬虫
2012-03-07 15:32 6586server { listen ... -
nginx禁止IP直接访问或者禁止非本站的域名访问
2012-03-06 18:04 2351可能有需要禁止IP直接访问80端口或者禁止非本站的域名绑 ... -
nginx 多域名配置以及负载均衡[转]
2012-02-24 21:32 15087nginx绑定多个域名可又把多个域名规则写一个配置文件 ... -
Linux中安装nginx以及启动、关闭和重启命令
2011-12-04 18:30 5464首先当然得去 www.nginx.net下载,nginx,我下 ... -
nginx 配置tomcat代理
2011-09-02 11:08 1519server { listen ... -
nginx的域名重定向配置
2011-08-01 10:21 4396把不带www的子域名重定向到带www的主域名上 ... -
nginx在windows下的命令
2011-06-09 14:35 1187检测conf文件 nginx -t 重载配置并重启 ng ...
相关推荐
【LINUX】Nginx + Tomcat 动静分离实现负载均衡【LINUX】Nginx + Tomcat 动静分离实现负载均衡
Nginx Tomcat实现动静分离 就目前来说是Nginx结合Tomcat 比较好的一篇负载均衡应用文档
Nginx+Tomcat 动静分离实现负载均衡.rar
小型网站上进行的nginx+tomcat负载均衡与动静分离
一、初识Tomcat; 二、Tomcat与jdk的关系; 三、Tomcat内部工作原理; 四、Tomcat配置文件详解; 五、案例:搭建Tomcat案例;
Nginx+Tomcat 动静分离实现负载均衡文档,详细记录动静分离的实现,通过此技术,提高中间件运行的性能,提高服务质量。
Nginx+Tomcat负载均衡&动静分离实战 从0开始构建Nginx WEB平台; 1)实战Tomcat WEB集群&代码发布; 2)Nginx负载均衡Tomcat集群&动静分离&Rewrite实战;
本篇文章主要介绍了nginx实现tomcat动静分离详解,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
linux nginx+tomcat 负载均衡简单原理,其中以很简单明了的图片流程呈现nginx的负载均衡原理,当然其中也包含负载均衡的实例代码。供学者参考。
Nginx+tomcat配置集群负载均衡实现动静分离实例
介绍nginx+tomcat实现反向代理和动静分离的实现
一、Haproxy概述; 二、Haproxy原理实现; 三、Nginx、LVS、Haproxy对比; 四、Haproxy配置文件讲解; 五、案例:Haproxy+Nginx+Tomcat搭建高可用集群;
Nginx+Tomcat 动静分离 Nginx+tomcat集群Memcached+Session复制 高性能高并发服务器架构 基于nginx的tomcat负载均衡和集群 实现多服务器负载均衡 系统性能优化 数据库 Nginx+Squid负载均衡 配置好的集群 总共三十个...
Nginx++Keepalived+Tomcat负载 均衡 &动 静 分 离。配置
Nginx+keepalived+tomcat实现性负载均衡
nginx-tomcat 20230813-20230815 详细文档
windows下测试 nginx+tomcat实现java web项目的动静分离 1. 安装nginx,访问静态资源 安装成功后,启动nginx,浏览器输入http://localhost/出现欢迎页面. 在nginx下依次建立目录 static\test1\js\common,并将...
主要介绍了Nginx配合Apache或Tomcat的动静分离基本配置实例,实际上Nginx专门负责静态和反向代理是主流服务器配置方案,需要的朋友可以参考下
本文介绍了Nginx与Tomcat实现动静态分离和负载均衡,所谓动静分离就是通过nginx(或apache等)来处理用户端请求的图片、html等静态的文件,tomcat(或weblogic)处理jsp、do等动态文件,从而达到动静页面访问时通过...
6 企业实战Nginx+Tomcat动静分离架构.ts 7 企业实战Nginx+PHP(FastCGI)高性能服务器.ts 8 Nginx与Tomcat-PHP架构优化.ts 9 Nginx配置优化及深入讲解 10 Nginx Rewrite规则详解一.ts 11 构建Nginx均衡LAMP高性能...