(ALL-AI)Think. Code. Repeat.

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;
}
}
Share
Newer
251110-BIOS-Keypress-BIOSKeyPress-IPC-工控机重装系统按键
Older
251019-Nginx域名绑定-WFW禁止IP访问

Archives

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

Recent Posts

  • 260401-openclaw-cn-uninstall卸载
  • 260317-openclaw-skills技能整理
  • 260311-openclaw-cn部署和使用
  • 260310-openclaw部署和使用
  • 260309-Virtualbox主机和虚拟机之间文件夹共享及双向拷贝(Windows<->Windows, Windows<->Linux)
© 2026 owen
Powered by Hexo
Home Archives