Nginx summary (4) nginx summary (3) http://www.2cto.com/os/201303/192404.htmlnginx Nginx acts as a proxy server! Www.2cto. comhttp {upstreamtestProxy {server192.168.0.26;... nginx summary (4) nginx summary (3) http://www.2cto.com/os/201303/192404.htmlnginx Nginx acts as a proxy server! Www.2cto.com http {upstream testProxy {server 192.168.0.26; 3 // indicates that 26 accepts 3, and 62 accepts one server 192.168.0.62;} server {listen 80; server_name lvs.example.com; access_log logs/lvs. access. log main; location/{proxy_pass http://testProxy ;}} Nginx is used as a proxy server. in actual applications, nginx can only parse static web pages. if it is a dynamic web page, in this case, nginx is used to access *. The jsp web page directs to the tomcat server to separate dynamic and static web pages! The following is an example of dynamic/static configuration. The main section of http {upstream testProxy {server 222.24.24.185: 8080; server 222.24.24.28: 8080;} location ~ \. Jsp {// proxy testProxy proxy_pass is used for all ends with. jsp http://testProxy ;}}
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