nginx对后端的目录进行反向代理

  

nginx主配置文件

worker_processes  1;      error_log ,/home/数据/logs/nginx/error.log;   # error_log ,日志/error.log;   # error_log ,日志/error.log ,注意;   # error_log 时间日志/error.log 大敌;;信息;      # pid ,,,,,,,日志/nginx.pid;      worker_rlimit_nofile  65535;      events  {   ,,,use  epoll;   ,,,worker_connections , 65535;   }         http  {   ,,,include ,,,,,, mime.types;   ,,,default_type ,应用程序/八进制;      ,,,log_format , main ,“remote_addr 美元;作用;remote_user 美元;[time_local美元],“http_host美元”,“美元请求”,“   ,,,,,,,,,,,,,,,,,,,,,”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美元],“美元请求”,“   号,,,,,,,,,,,,,,,,,,,,,”status  body_bytes_sent 美元;“http_referer美元”,“   号,,,,,,,,,,,,,,,,,,,,,”“http_user_agent美元”,“http_x_forwarded_for美元”;      ,,,# access_log ,日志/access.log ,主要;   ,,,access_log ,/home/数据/logs/nginx/access.log 主要;   ,,,server_tokens ;      ,,,sendfile ,,,,,,,,   ,,,# tcp_nopush ,,,,,      ,,,# keepalive_timeout , 0;   ,,,keepalive_timeout , 65;      # - - - - - - - - - - - - - - - - h2 - - - - - - - - - - - - - - - - -   ,,,upstream , plone  {,,   ,,server  172.16.1.24:8080;,,,, #重点   ,,,,},,         ,,,# gzip ,;      ,,,server_name_in_redirect ,,      ,,,include  vhost/* . conf;, #重点   ,,         }

nginx, vhost里面的配置文件

        [root@plone  vhost] #, cat , plone.conf       ,,,server  {   ,,,,,,,listen ,,,,,, 80;   ,,,,,,,server_name , plone.sense.com.cn;   ,,,,,,,access_log ,/home/数据/logs/nginx/plone_access.log 主要;   #,,,,,,,,rewrite  ^(. *),美元,https://主机1美元,永久性的;   ,,,,,,,的位置/,{   ,,,,,,,,,,,,,,,,proxy_set_header  X-real-ip  remote_addr美元;   ,,,,,,,,,,,,,,,,proxy_set_header  Host  http_host美元;   ,,,,,,,,,,,,,,,,proxy_set_header  X-Forwarded-Scheme ,美元计划;   ,,,,,,,,,,,,,,,,proxy_pass ,, #重点,   ,,,,,,,}      ,,,,,,,error_page ,, 500, 502, 503, 504,,/50 x.html;   ,,,,,,,的位置=,/50 x.html  {   ,,,,,,,,,,,root ,, html;   ,,,,,,,}      }               #,,,,server  {   #,,,,,,,,listen ,,,,,, 443, ssl;   #,,,,,,,,server_name , console.senseyun.com;   #,,,,access_log ,/home/数据/logs/nginx/ssl.console_senseyun.log 主要;   #   #,,,,,,,,ssl_certificate /opt/CA/senseyun.com_bundle.crt;   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

nginx对后端的目录进行反向代理