(ALL-AI)即刻去做&愿有前程可奔赴&亦有岁月可回头

Home Archives
2025-10-19

251019-Nginx配置Http跳转Https

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
server_name baidu.com

server {
listen 80;
server_name baidu.com;

rewrite ^(.*)$ https://$host$1 permanent;
}

server {
listen 443;

if ($host != 'baidu.com') {
return 403;
}
}
Teilen
Neuer
251110-BIOS-IPC-工控机重装按键
Älter
251019-Nginx域名绑定-WFW禁止IP访问

Archiv

  • 一月 2026
  • 十二月 2025
  • 十一月 2025
  • 十月 2025
  • 九月 2025
  • 八月 2025
  • 七月 2025
  • 六月 2025
  • 五月 2025

letzter Beitrag

  • Hello World
  • 260123-windows 11 开机后必须在电脑上输入密码后,才能远程,是怎么回事
  • 260121-Ubuntu生成docker证书
  • 260121-ubuntu 域名ping 提示Temporary failure in name resolution-ping-baidu.com
  • 260119-linux-redis离线安装
© 2026 Owen.Chen
Powered by Hexo
Home Archives