Nginx memcache Tomcat Cluster load Balancing

Source: Internet
Author: User
Tags what is nginx

First understand what is Nginx:

http://cxshun.iteye.com/blog/1535188


Pictures from other deployment frameworks that can be learned from the entire cluster installation address: http://www.iteye.com/topic/1125301nginx Configuration After the problem:js,css,png ... Can't show it? 1, view page source code discovery: Read Js,css,png and other information, the system went to read the "http://tomcat_service/project name/css ..." Tomcat_service to configure the name of multiple servers, it is obviously wrong! repeatedly searched for "Nginx css,js,png cannot display" but did not get the answer, suddenly found:
    1. Location/{
    2. Proxy_pass http://tomcat_service
    3. Proxy_redirect default;
    4. Proxy_connect_timeout 10; (The timeout for connecting to the proxy server must be noted that the time out period cannot exceed 10 seconds.) When a server goes down, it is forwarded to another server in 10 seconds .
    5. }
 No header format added above! as follows:
    1. Proxy_set_header X-real-ip $remote _addr;
    2. Client_max_body_size 100m;
 

Nginx memcache Tomcat Cluster load Balancing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.