In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Nginx main configuration file
Worker_processes 1 errorists log / home/data/logs/nginx/error.log;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;worker_rlimit_nofile 65535 events {use epoll; worker_connections 65535;} http {include mime.types; default_type application/octet-stream Log_format main'$remote_addr-$remote_user [$time_local] "$http_host"$request"'$status $body_bytes_sent "$http_referer"'"$http_user_agent" $http_x_forwarded_for''"$upstream_addr"$upstream_status"$upstream_response_time"$request_time"' # log_format main'$remote_addr-$remote_user [$time_local] "$request" #'$status $body_bytes_sent "$http_referer" # "$http_user_agent" $http_x_forwarded_for "; # access_log logs/access.log main; access_log / home/data/logs/nginx/access.log main; server_tokens off Sendfile on; # tcp_nopush on; # keepalive_timeout 0; keepalive_timeout 65; #-H2-upstream plone {server 172.16.1.24 upstream plone 8080; # emphasis} # gzip on; server_name_in_redirect off Include vhosts/*.conf; # key points}
Configuration files in nginx vhosts
[root@plone vhosts] # cat plone.conf server {listen 80; server_name plone.sense.com.cn; access_log / home/data/logs/nginx/plone_access.log main;# rewrite ^ (. *) $https://$host$1 permanent; location / {proxy_set_header X-real-ip $remote_addr; proxy_set_header Host $http_host Proxy_set_header X-Forwarded-Scheme $scheme; proxy_pass # focus} error_page 500 502 503 504 / 50x.html; location = / 50x.html {root html;} # server {# listen 443 ssl;# server_name console.senseyun.com # access_log / home/data/logs/nginx/ssl.console_senseyun.log main;# # ssl_certificate / opt/CA/senseyun.com_bundle.crt;# ssl_certificate_key / opt/CA/senseyun.com.key;### location ~ ^ / {# proxy_set_header X-real-ip $remote_addr;# proxy_set_header Host $http_host # proxy_set_header X-Forwarded-Scheme $scheme;# proxy_pass http://console;#} # # error_page 500502 503504 / 50x.htmlscape # location = / 50x.html {# root html;#} #}
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.