A reverse proxy is a proxy server that is installed in a server network. Typically, reverse proxies are used in front of Web servers such as Apache, IIS, and Lighttpd. How do I setup nginx web server as SSL reverse proxy?

When you've multiple backend web servers, encryption / SSL acceleration can be done by a reverse proxy. Nginx can act as SSL acceleration software. It provided the following benefits:

  • Easy of use : Nginx is easy to setup and upgrade.
  • Security : Nginx provide an additional layer of defense as Apache is behind the proxy. It can protect against common web-based attacks too.
  • Load Distribution : nginx use very little memory and can distribute the load to several Apache servers. It can even rewrite urls on fly.
  • Caching : Nginx act as a reverse proxy which offload the Web servers by caching static content, such as images, css, js, static html pages and much more.
  • Compression : Nginx can optimize and compress the content to speed up the load time.
  • 本日志由 flyinweb 于 2011-12-09 09:38:39 发表到 WEB服务器 中,目前已经被浏览 264 次,评论 0 次;

    作者添加了以下标签: NginxSSL Reverse ProxyLoad Balanced SSL Proxy

    首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

    Keepalived provides a strong and robust health checking for LVS clusters. It implements a framework of health checking on multiple layers for server failover, and VRRPv2 stack to handle director failover. How do I install and configure Keepalived for reverse proxy server such as nginx or lighttpd?

    If your are using a LVS director to loadbalance a server pool in a production environment, you may want to have a robust solution for healthcheck & failover. This will also work with reverse proxy server such as nginx.

    本日志由 flyinweb 于 2011-12-09 09:36:24 发表到 WEB服务器 中,目前已经被浏览 282 次,评论 0 次;

    作者添加了以下标签: NginxkeepalivedIP Failover

    首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

    How do configure to release and obtain VIP (virtual IP) when nginx is dead, down or system is rebooted for the kernel upgrades?

    Edit /usr/local/etc/keepalived/keepalived.conf and add the following section to check whether nginx is alive or dead:
    # vi /usr/local/etc/keepalived/keepalived.conf
    Updated file on both lb0 and lb1:

    vrrp_script chk_http_port {
            script "/usr/bin/killall -0 nginx"
            interval 2
            weight 2}
    vrrp_instance VI_1 {
            interface eth0
            state MASTER
            virtual_router_id 51
            priority 101
            authentication {
                auth_type PASS
                auth_pass Add-Your-Password-Here
            }
            track_script {
                chk_http_port
            }
            virtual_ipaddress {202.54.1.1/29 dev eth1
            }}

    Save and close the file. Reload keealived:
    # /etc/init.d/keepalived restart
    If nginx died due to any issues keepalived will release master VIP and backup server will become active. When master nginx LB0 comes backs online, the backup LB1 will go down in backup state.

    本日志由 flyinweb 于 2011-12-09 09:34:42 发表到 WEB服务器 中,目前已经被浏览 318 次,评论 0 次;

    作者添加了以下标签: KeepAlivedNginx FailoverNginx

    How do I configure nginx as failover reverse proxy load balancer in front of two Apache web servers under CentOS / RHEL 5.x?

    nginx is a Web and Reverse proxy server. Nginx used in front of Apache Web servers. All connections coming from the Internet addressed to one of the Web servers are routed through the nginx proxy server, which may either deal with the request itself or pass the request wholly or partially to the main web servers.

    本日志由 flyinweb 于 2011-12-09 09:29:16 发表到 WEB服务器 中,目前已经被浏览 272 次,评论 0 次;

    作者添加了以下标签: NginxReverse ProxyLoad Balancer

    首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

    Nginx默认是显示版本号的,如:

    [root@bkjz ~]# curl -I www.nginx.org
    HTTP/1.1 200 OK
    Server: nginx/0.8.44
    Date: Tue, 13 Jul 2010 14:05:11 GMT
    Content-Type: text/html
    Content-Length: 8284
    Last-Modified: Tue, 13 Jul 2010 12:00:13 GMT
    Connection: keep-alive
    Keep-Alive: timeout=15
    Accept-Ranges: bytes

    这样就给人家看到你的服务器nginx版本是0.8.44,前些时间暴出了一些Nginx版本漏洞,就是说有些版本有漏洞,而有些版本没有。这样暴露出来的版本号就容易变成攻击者可利用的信息。所以,从安全的角度来说,隐藏版本号会相对安全些!

    本日志由 flyinweb 于 2011-08-30 17:22:40 发表到 WEB服务器 中,目前已经被浏览 721 次,评论 0 次;

    作者添加了以下标签: Nginxserver_tokens

    首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

    Two weeks ago we have started new version of one of our primary web projects and have started very massive advertisement campaign to promote this web site. As the result of that advertisements, our outgoing traffic has been increased to 200-250Mbit/s from only one server! In this article I will describe, how to build stable and efficient web site with two-layer architecture (with frontend + backend web servers) or how to modify your current server configuration to get additional resources to handle more requests.

    本日志由 flyinweb 于 2010-06-10 11:27:51 发表到 WEB服务器 中,目前已经被浏览 4310 次,评论 0 次;

    作者添加了以下标签: NginxReverse-Proxy Server反向代理

    首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

    服务器的大用户量的承载方案
    一、前言
    二、编译安装
    三、 安装MySQL、memcache
    四、 安装Apache、PHP、eAccelerator、php-memcache
    五、 安装Squid
    六、后记

    本日志由 flyinweb 于 2009-08-25 10:59:17 发表到 Linux 中,目前已经被浏览 4388 次,评论 0 次;

    作者添加了以下标签: nginxapachemysqlphpmemcachedSquid

    首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

    www.s135.com 和 blog.s135.com 域名均指向 Nginx 所在的服务器IP。

      用户访问http://www.s135.com,将其负载均衡到192.168.1.2:80、192.168.1.3:80、192.168.1.4:80、192.168.1.5:80四台服务器。

      用户访问http://blog.s135.com,将其负载均衡到192.168.1.7服务器的8080、8081、8082端口。

    本日志由 flyinweb 于 2009-07-04 08:46:41 发表到 Linux 中,目前已经被浏览 4111 次,评论 0 次;

    作者添加了以下标签: Nginx负载均衡

    首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

    101/2