首页 > 系统相关 >nginx多域名 多首页配置

nginx多域名 多首页配置

时间:2023-11-07 09:33:42浏览次数:28  
标签:index 首页 http nginx 域名 html location backend proxy

#user  nobody; worker_processes  auto; worker_cpu_affinity auto;   error_log  /midware/nginx/logs/error.log info; #error_log  logs/error.log  notice; #error_log  logs/error.log  info;   pid        logs/nginx.pid;     events {     use epoll;     worker_connections  65535;     multi_accept off;     accept_mutex off; }     http {     include       mime.types;     default_type  application/octet-stream;     server_names_hash_bucket_size 128;     client_header_buffer_size 32k;     large_client_header_buffers 4 32k;     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  /midware/nginx/logs/access.log  main;       add_header X-Content-Type-Options nosniff;     add_header X-Frame-Options SAMEORIGIN;       sendfile        on;     sendfile_max_chunk 512k;     tcp_nopush     on;     tcp_nodelay on;     #keepalive_timeout  0;     keepalive_timeout  15;     client_body_timeout 60;     client_header_timeout 60;     send_timeout 60;     #gzip  on;     gzip on;     gzip_min_length  1k;     gzip_buffers     4 16k;     gzip_http_version 1.1;     gzip_comp_level 2;     gzip_types     text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;     gzip_vary on;     gzip_proxied   expired no-cache no-store private auth;     gzip_disable   "MSIE [1-6]\.";      proxy_connect_timeout 300s;         proxy_send_timeout   900;         proxy_read_timeout   900;         proxy_buffer_size    32k;         proxy_buffers     4 32k;         proxy_busy_buffers_size 64k;         proxy_redirect     off;         proxy_hide_header  Vary;         proxy_set_header   Accept-Encoding '';         proxy_set_header   Host   $http_host;         proxy_set_header   Referer $http_referer;         proxy_set_header   Cookie $http_cookie;         # proxy_set_header   X-Real-IP  $remote_addr;         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_set_header   X-Forwarded-Proto $scheme;       #limit_conn_zone $binary_remote_addr zone=perip:10m;     ##If enable limit_conn_zone,add "limit_conn perip 10;" to server section.     server_tokens off;     access_log off;   upstream ***backend { ip_hash; # 按服务IP 端口修改 server 10.52.21.163:8080 max_fails=3 fail_timeout=30s; server 10.52.21.164:8080 max_fails=3 fail_timeout=30s; }   upstream searchbackend { ip_hash; # 按服务IP 端口修改 server 10.52.21.161:8080 max_fails=3 fail_timeout=30s; server 10.52.21.162:8080 max_fails=3 fail_timeout=30s; }   upstream static_backend { server localhost:80; }   #主     server {        listen       80;        listen       [::]:80 ipv6only=on;        server_name  www.***.com.cn;        charset utf-8; root /midware/web; index ***/index.html index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; #location / { #expires 5m;  #index ***/index.html index.html; #}   location /ps***** { #root /midware/web; #index ps*****/index.shtml; }   location / {         #       expires 5m;           index ***/index.html index.html;          }                                       #access_log  logs/host.access.log  main;          #location / {         #    #root   html; #    root /midware/web;         #    #index  index.html index.htm; #}           #error_page  404              /404.html;   location /eportal {proxy_pass http://***backend/eportal;} location /eportalapp {proxy_pass http://***backend/eportalapp;} location /eportalmsg {proxy_pass http://***backend/eportalmsg;} location /eportalsite {proxy_pass http://***backend/eportalsite;} location /eportalapply {proxy_pass http://***backend/eportalapply;} location /search {proxy_pass http://searchbackend/search;} location = /search/admin/toLogin.htm { try_files  $uri /***/index.html =404;   }         error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }     }     #副 server {         listen       80; listen       [::]:80;         server_name  www.df*****.com; charset utf-8; root /midware/web; index df*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }   #location ~^/(?!df*****|uiFramework|***/imageDir|eportal|eportalapp|eportalmsg|eportalsite|eportalapply|sitemap.*\.xml|robots.txt|/404.html){ #        return 301 http://www.***.com.cn$request_uri; #}           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           }   #副 server {         listen       80; listen       [::]:80;         server_name  www.jd*****.com; charset utf-8; root /midware/web; index jd*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           } #副 server {         listen       80; listen       [::]:80;         server_name  www.hc*****.com; charset utf-8; root /midware/web; index hc*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           } #副 server {         listen       80; listen       [::]:80;         server_name  www.sl*****.com; charset utf-8; root /midware/web; index sl*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           } #副 server {         listen       80; listen       [::]:80;         server_name  www.shulan*****.com; charset utf-8; root /midware/web; index shulan*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           } #副 server {         listen       80; listen       [::]:80;         server_name  www.jh*****.com; charset utf-8; root /midware/web; index jh*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           } #副 server {         listen       80; listen       [::]:80;         server_name  www.ccsy*****.com; charset utf-8; root /midware/web; index ccsy*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           } #副 server {         listen       80; listen       [::]:80;         server_name  www.yq*****.com; charset utf-8; root /midware/web; index yq*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           } #副 server {         listen       80; listen       [::]:80;         server_name  www.cx*****.com; charset utf-8; root /midware/web; index cx*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml; ssi on; ssi_silent_errors on; ssi_types text/shtml;   client_max_body_size 10M; location / { expires 5m;  }           location /eportal {proxy_pass http://***backend/eportal;}         location /eportalapp {proxy_pass http://***backend/eportalapp;}         location /eportalmsg {proxy_pass http://***backend/eportalmsg;}         location /eportalsite {proxy_pass http://***backend/eportalsite;}         location /eportalapply {proxy_pass http://***backend/eportalapply;}            error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;         location = /404.html {             root   html;         }           }   } #user  nobody;worker_processes  auto;worker_cpu_affinity auto;
error_log  /midware/nginx/logs/error.log info;#error_log  logs/error.log  notice;#error_log  logs/error.log  info;
pid        logs/nginx.pid;

events {    use epoll;    worker_connections  65535;    multi_accept off;    accept_mutex off;}

http {    include       mime.types;    default_type  application/octet-stream;    server_names_hash_bucket_size 128;    client_header_buffer_size 32k;    large_client_header_buffers 4 32k;    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  /midware/nginx/logs/access.log  main;
    add_header X-Content-Type-Options nosniff;    add_header X-Frame-Options SAMEORIGIN;
    sendfile        on;    sendfile_max_chunk 512k;    tcp_nopush     on;    tcp_nodelay on;    #keepalive_timeout  0;    keepalive_timeout  15;    client_body_timeout 60;    client_header_timeout 60;    send_timeout 60;    #gzip  on;    gzip on;    gzip_min_length  1k;    gzip_buffers     4 16k;    gzip_http_version 1.1;    gzip_comp_level 2;    gzip_types     text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;    gzip_vary on;    gzip_proxied   expired no-cache no-store private auth;    gzip_disable   "MSIE [1-6]\.";
   proxy_connect_timeout 300s;        proxy_send_timeout   900;        proxy_read_timeout   900;        proxy_buffer_size    32k;        proxy_buffers     4 32k;        proxy_busy_buffers_size 64k;        proxy_redirect     off;        proxy_hide_header  Vary;        proxy_set_header   Accept-Encoding '';        proxy_set_header   Host   $http_host;        proxy_set_header   Referer $http_referer;        proxy_set_header   Cookie $http_cookie;        # proxy_set_header   X-Real-IP  $remote_addr;        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;        proxy_set_header   X-Forwarded-Proto $scheme;
    #limit_conn_zone $binary_remote_addr zone=perip:10m;    ##If enable limit_conn_zone,add "limit_conn perip 10;" to server section.    server_tokens off;    access_log off;
upstream ***backend {ip_hash;# 按服务IP 端口修改server 10.52.21.163:8080 max_fails=3 fail_timeout=30s;server 10.52.21.164:8080 max_fails=3 fail_timeout=30s;}
upstream searchbackend {ip_hash;# 按服务IP 端口修改server 10.52.21.161:8080 max_fails=3 fail_timeout=30s;server 10.52.21.162:8080 max_fails=3 fail_timeout=30s;}upstream static_backend {server localhost:80;}
#主    server {       listen       80;       listen       [::]:80 ipv6only=on;       server_name  www.***.com.cn;       charset utf-8;root /midware/web;index ***/index.html index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;#location / {#expires 5m; #index ***/index.html index.html;#}
location /ps***** {#root /midware/web;#index ps*****/index.shtml;}
location / {        #       expires 5m;          index ***/index.html index.html;         }                             
       #access_log  logs/host.access.log  main;
       #location / {        #    #root   html;#    root /midware/web;        #    #index  index.html index.htm;#}
        #error_page  404              /404.html;
location /eportal {proxy_pass http://***backend/eportal;}location /eportalapp {proxy_pass http://***backend/eportalapp;}location /eportalmsg {proxy_pass http://***backend/eportalmsg;}location /eportalsite {proxy_pass http://***backend/eportalsite;}location /eportalapply {proxy_pass http://***backend/eportalapply;}location /search {proxy_pass http://searchbackend/search;}location = /search/admin/toLogin.htm { try_files  $uri /***/index.html =404;  }        error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }    }

#副server {        listen       80;listen       [::]:80;        server_name  www.df*****.com;charset utf-8;root /midware/web;index df*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
#location ~^/(?!df*****|uiFramework|***/imageDir|eportal|eportalapp|eportalmsg|eportalsite|eportalapply|sitemap.*\.xml|robots.txt|/404.html){#        return 301 http://www.***.com.cn$request_uri;#}
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }
#副server {        listen       80;listen       [::]:80;        server_name  www.jd*****.com;charset utf-8;root /midware/web;index jd*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }#副server {        listen       80;listen       [::]:80;        server_name  www.hc*****.com;charset utf-8;root /midware/web;index hc*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }#副server {        listen       80;listen       [::]:80;        server_name  www.sl*****.com;charset utf-8;root /midware/web;index sl*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }#副server {        listen       80;listen       [::]:80;        server_name  www.shulan*****.com;charset utf-8;root /midware/web;index shulan*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }#副server {        listen       80;listen       [::]:80;        server_name  www.jh*****.com;charset utf-8;root /midware/web;index jh*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }#副server {        listen       80;listen       [::]:80;        server_name  www.ccsy*****.com;charset utf-8;root /midware/web;index ccsy*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }#副server {        listen       80;listen       [::]:80;        server_name  www.yq*****.com;charset utf-8;root /midware/web;index yq*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }#副server {        listen       80;listen       [::]:80;        server_name  www.cx*****.com;charset utf-8;root /midware/web;index cx*****/index/index.shtml index/index.html index/index.shtml index.html index.shtml;ssi on;ssi_silent_errors on;ssi_types text/shtml;client_max_body_size 10M;location / {expires 5m; }
        location /eportal {proxy_pass http://***backend/eportal;}        location /eportalapp {proxy_pass http://***backend/eportalapp;}        location /eportalmsg {proxy_pass http://***backend/eportalmsg;}        location /eportalsite {proxy_pass http://***backend/eportalsite;}        location /eportalapply {proxy_pass http://***backend/eportalapply;}

       error_page   400 401 402 403 404 405 408 410 412 413 414 415 500 501 502 503 504 506  /404.html;        location = /404.html {            root   html;        }
        }
}

标签:index,首页,http,nginx,域名,html,location,backend,proxy
From: https://www.cnblogs.com/zxbboke/p/17814305.html

相关文章

  • 207-nginx 或者tomcat报错:413 Request Entity Too Large
    http{#...client_max_body_size20M;#设置最大允许大小为20MB#...}tomcat413RequestEntityTooLarge<Connectorport="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort=&quo......
  • 编译安装nginx-systemctl
    实验:1cd/opt2wgethttp://nginx.org/download/nginx-1.18.0.tar.gz#通过网络地址下载nginx的安装包,下载到opt目录下 1tarxf  nginx-1.18.0.tar.gz#将安装包解压 #通过网络源下载依赖包 #安装完成后,在该目录下递归创建“/apps/nginx” #指明安装路......
  • 域名在线打包生成APP的优势
    大家好,凯撒又来更新了,现在这个互联网社会移动应用已经成为企业和个人不可或缺的工具,但是对于没有专业编程技能的人来说,开发一个功能完善的移动应用可能还是比较艰巨的。现在有一种更简便快捷的方式那就是使用域名在线打包生成APP。那域名在线打包有哪些优势呢。      ......
  • windows下nginx 配置 开机自启动
    一、windows系统下Nginx安装启动流程:二、设置Nginx开机自动启动1、自启动工具下载2、自启动工具安装3、把nginx加入到windows服务中最后一句话一、windows系统下Nginx安装启动流程:这是我们在正常环境中,Windows下Nginx的安装及启动方式1、到nginx官网下载相应版本(http://nginx.org......
  • celery flower通过nginx部署 静态文件css js
    nginx添加以下配置  location/flower{proxy_passhttp://127.0.0.1:5555;proxy_set_headerHost$host;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded......
  • 配置使用百度地图时出现:APP Referer校验失败。请检查该ak设置的白名单与访问所有的域
    如果是个人内部测试使用,直接将IP白名单设置为*  ......
  • nginx ingress controller EWMA负载均衡策略工作原理及修改过程
    1、概念 EWMA(ExponentiallyWeightedMovingAverage)策略是NGINXIngressController中的一种负载均衡算法,它用于决定请求应该由后端服务的哪个实例处理。 2、工作原理 EWMA策略通过指数加权移动平均的方式计算每个后端服务实例的权重,并根据权重来分配请求。 它的......
  • 域名遍历(dirbuster子域名爆破)课程笔记
    dirbusterDirBuster是Owasp(OpenWebApplicationSecurityProject)开发的一款专门用于探测网站目录和文件(包括隐藏文件)的工具。由于使用Java编写,电脑中要装有JDK才能运行。域名遍历在终端命令框中输入:dirbuster,启动服务。配置点击Options—AdvancedOptions打开如下配置界......
  • 如何将docsify项目部署到centos系统nginx中?
    要将Docsify项目部署到CentOS系统的Nginx中,可以按照以下步骤进行操作:1.在CentOS服务器上安装Nginx: -打开终端并以root用户身份登录到CentOS服务器。 -运行以下命令来安装Nginx:    yuminstallnginx   -安装完成后,启动Nginx服务:    systemctls......
  • rancher部署微服务(1)--部署nginx微服务
    利用之前部署的rancher平台操作1.访问http://192.168.8.92,返回如下输入账号密码admin/131420an,返回如下2.选择第二个集群,选择项目3.回到工作负载的页面部署微服务4.部署微服务4.1单击部署服务4.2回到如下页面进行配置4.3根据需求进行配置4.4.设置微服务镜像的拉取策略,cpu内存的......