In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 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.
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.