In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The nginx configuration file is mainly divided into four parts: http (global configuration) server (host configuration) upstream (load balancing server configuration, within the scope of http configuration) location (url matches location-specific settings) function implemented by nginx 1: reverse proxy 2:location/url rewrites 3:web cache 4: load balancing edit configuration file Implementation of load balancing vim / etc/nginx/nginx.confupstream boke_web {server 192.168.1.135VR 80 by reverse proxy Server 192.168.1.136 http2; ssl on; server_name boke.wsfnk.com; ssl_certificate 80;} server {listen 443 http2; ssl on; server_name boke.wsfnk.com; ssl_certificate "/ etc/pki/nginx/boke_server.crt"; ssl_certificate_key "/ etc/pki/nginx/private/boke_server.key"; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers AESGCMV all LHV export RC4VOV 3DESlav HIGHPLOR MEDIUM Vol LOWIUMUR LOWIUM Ssl_prefer_server_ciphers on; location / {proxy_pass http://boke_web;} error_page 404 / 404.html; location = / 40x.html {} error_page 500502503504 / 50x.html; location = / 50x.html {}
Once configured, check the syntax of the nginx configuration file
Nginx-c / etc/nginx/nginx.conf-t
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.