编辑
2024-05-12
随心记录
00
请注意,本文编写于 193 天前,最后修改于 193 天前,其中某些信息可能已经过时。

Nginx 1.18.0

user root; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name m.bdoodoo.com; location / { proxy_pass http://127.0.0.1:8199; } } server { listen 80; server_name new1.bdoodoo.com; location / { proxy_pass http://127.0.0.1:8001; } } server { listen 80; server_name new2.bdoodoo.com; location / { proxy_pass http://127.0.0.1:8001; } } server { listen 80; server_name bdoodoo.com; return 301 http://www.bdoodoo.com$request_uri; } server { listen 80; server_name cd.bdoodoo.com; return 301 http://www.bdoodoo.com$request_uri; } server { listen 80; server_name www.bdoodoo.com; location / { proxy_pass http://127.0.0.1:8198; } } server { listen 80; server_name api.bdoodoo.com; return 301 https://api.bdoodoo.com$request_uri; } server { listen 80; server_name fnsxh.com; return 301 http://www.fnsxh.com$request_uri; } server { listen 80; server_name fnsxh.bdoodoo.com; location / { proxy_pass http://127.0.0.1:8197; } } server { listen 80; server_name fnsxh.intp.fun; location / { proxy_pass http://127.0.0.1:8197; } } server { listen 8200; location / { root /home/bdoodoo/dev/bddServer/nginx-1.14.2/html; allow all; } } server { listen 443 ssl; server_name m.bdoodoo.com; ssl_certificate /home/bdoodoo/dev/bddServer/app/bddProxy/cert/m.bdoodoo.com.pem; ssl_certificate_key /home/bdoodoo/dev/bddServer/app/bddProxy/cert/m.bdoodoo.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; return 301 http://m.bdoodoo.com$request_uri; } server { listen 443 ssl; server_name cd.bdoodoo.com; ssl_certificate /home/bdoodoo/dev/bddServer/app/bddProxy/cert/cd.bdoodoo.com.pem; ssl_certificate_key /home/bdoodoo/dev/bddServer/app/bddProxy/cert/cd.bdoodoo.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; return 301 http://www.bdoodoo.com$request_uri; } server { listen 443 ssl; server_name www.bdoodoo.com; ssl_certificate /home/bdoodoo/dev/bddServer/app/bddProxy/cert/www.bdoodoo.com.pem; ssl_certificate_key /home/bdoodoo/dev/bddServer/app/bddProxy/cert/www.bdoodoo.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; # location / { # proxy_pass http://127.0.0.1:8198; # } return 301 http://www.bdoodoo.com$request_uri; } server { listen 443 ssl; server_name bdoodoo.com; ssl_certificate /home/bdoodoo/dev/bddServer/app/bddProxy/cert/www.bdoodoo.com.pem; ssl_certificate_key /home/bdoodoo/dev/bddServer/app/bddProxy/cert/www.bdoodoo.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; return 301 http://www.bdoodoo.com$request_uri; } server { listen 443 ssl; server_name www.fnsxh.com; ssl_certificate /home/bdoodoo/dev/bddServer/app/bddProxy/cert/www.fnsxh.com.pem; ssl_certificate_key /home/bdoodoo/dev/bddServer/app/bddProxy/cert/www.fnsxh.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; return 301 http://www.fnsxh.com$request_uri; } server { listen 443 ssl; server_name fnsxh.com; ssl_certificate /home/bdoodoo/dev/bddServer/app/bddProxy/cert/www.fnsxh.com.pem; ssl_certificate_key /home/bdoodoo/dev/bddServer/app/bddProxy/cert/www.fnsxh.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; return 301 http://www.fnsxh.com$request_uri; } server { listen 443 ssl; server_name api.bdoodoo.com; ssl_certificate /home/bdoodoo/dev/bddServer/app/bddProxy/cert/api.bdoodoo.com.pem; ssl_certificate_key /home/bdoodoo/dev/bddServer/app/bddProxy/cert/api.bdoodoo.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass http://127.0.0.1:8000; } } # server { # listen 443 http2; # server_name bdoodoo.com; # rewrite ^/(.*) http://$server_name/$1 permanent; # } # server { # listen 443 http2; # server_name fnsxh.com; # rewrite ^/(.*) http://$server_name/$1 permanent; # } }

本文作者:枣子

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!