Nginx
wbj0110
这个作者很懒,什么都没留下…
展开
-
关于Nginx session sticky
Nginx以前对session 保持支持不太好,主要采用ip_hash把同一来源的客户(同一C段的IP)固定指向后端的同一台机器,ip_hash有个缺点是不能实现很好的负载均衡;直到nginx的扩展模块nginx-sticky-module的出现,解决了session sticky的问题。基本的原理:首先根据轮询RR随机到某台后端,然后在响应的Set-Cookie上加上route=m...原创 2013-11-15 09:50:43 · 99 阅读 · 0 评论 -
使用nginx lua velocity的网站架构(转)
本架构目前只支持linux,最好是64位linux,比如fedora19 安装系统所需web软件 1.下载luajit,官网 http://luajit.org/ wget http://luajit.org/download/LuaJIT-2.0.1.tar.gz tar xzvf LuaJIT-2.0.1.tar.gz cd LuaJIT-2.0...原创 2013-12-05 09:37:08 · 108 阅读 · 0 评论 -
Nginx反向代理+负载均衡
1. 环境 1.1 系统环境 [root@nginx-cache-1-1 nginx]# cat /etc/redhat-release CentOS release 5.8 (Final) [root@nginx-cache-1-1 ~]# uname -r 2.6.18-308.el5 [root@nginx-cache-1-1 ~]# uname -m x86_64 [ro...原创 2013-12-05 09:41:16 · 134 阅读 · 0 评论 -
Nginx 中设置反向代理和虚拟主机
在Nginx 中设置反向代理和虚拟主机非常简单,下面是配置文件的一个示例:server {listen 80;server_name mysite.com;location / {proxy_pass http://localhost:3000;}89}这个配置文件的功能是监听访问mysite.com 80 端口的请求,并将所有的请求转发给http:...原创 2014-01-02 11:05:57 · 74 阅读 · 0 评论 -
RStudio Server: Running with a Proxy
OverviewIf you are running RStudio on a public network it is strongly recommended that you deploy RStudio behind another web server (e.g. Nginx or Apache) which acts as a reverse proxy to it. Doing...原创 2014-01-10 18:18:09 · 197 阅读 · 0 评论 -
nginx、memcached、tomcat 负载均衡和集群配置,session共享
使用memcached-session-manager这个开源项目(http://code.google.com/p/memcached-session-manager/ ),下面简称msm。安装nginx、memcached、tomcat 省略 tomcat1、nginx、memcached安装在192.168.1.11tomcat2安装在192.168.1.101...原创 2014-01-16 09:36:17 · 95 阅读 · 0 评论 -
Ubuntu系统卸载nginx
sudo apt-get --purge remove nginx原创 2014-01-21 15:50:24 · 112 阅读 · 0 评论 -
解决“HTTP/1.1 405 Method not allowed”问题,让静态文件响应POST请求
Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。 例1:用Linux下的curl命令发送POST请求给Apache服务器上的HTML静态页[root@new-host ~]# curl -d 1=1 http://www.sohu.com/index.html<...原创 2014-01-21 15:51:54 · 532 阅读 · 0 评论 -
Nginx + Memcached + Tomcat 集群
前几天搭建了apche+tomcat集群,被大牛拍砖,今天查了点资料,搭建了Nginx + Memcached + Tomcat 集群,与大家分享下: 一:环境 Tomcat7,下载链接:http://tomcat.apache.org/Nginx是nginx-1.2.8, 下载链接:http://nginx.org/en/download.html Memcache...原创 2014-01-27 09:19:04 · 78 阅读 · 0 评论