In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to set up the nginx reverse proxy. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Nginx is a high-performance HTTP and reverse proxy server, and the demo station of jspxcms is also built by nginx. Here, the relevant configurations are posted.
Proxy.conf file
Mainly solve the problem of getting the real IP of visitors.
Proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; forwarding configuration
Requests with the four suffixes of .jsp, .jspx, .do, and .servlet need to be forwarded to tomcat if the home page is set to use static pages. In addition, tomcat is sometimes added after the address; jsessionid=..., needs to take this situation into account.
Server {listen 80; server_name demo.jspxcms.com dm.jspxcms.com; location ~\. (jsp | jspx | do | servlet)? (\; jsessionid=.*)? ${proxy_pass http://localhost:8080;} location ~; jsessionid=.*$ {proxy_pass http://localhost:8080;} location / {root / home/demo/webapps/ROOT Index index.html index.htm index.jsp index.jspx index.do;} error_page 500 502 503 504 / 50x.htl; location = / 50x.html {root / usr/share/nginx/html;} location / WEB-INF/ {deny all }} the above is what the editor shares with you on how to set up the nginx reverse proxy. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.