http和https站點設置
```
server {
? ? ? ? listen ? ? ? \*:80;
? ? ? ? server\_name ?domain.com;
? ? ? ? root ? /usr/local/nginx/html;
# Convert http domain name request to https
? ? ? ? return 301 https://$host$request\_uri;
? ? ? ? location / {
? ? ? ? ? ? try\_files $uri $uri/ /index.php?$query\_string;
? ? ? ? ? ? index index.php index.html error/index.html;
? ? ? ? ? ? autoindex ?off;
? ? ? ? }
? ? ? ? location ~ \\.php(.\*)$ {
? ? ? ? ? ? fastcgi\_pass ? 127.0.0.1:9000;
? ? ? ? ? ? fastcgi\_index ?index.php;
? ? ? ? ? ? fastcgi\_split\_path\_info ?^((?U).+\\.php)(/?.+)$;
? ? ? ? ? ? fastcgi\_param ?SCRIPT\_FILENAME ?$document\_root$fastcgi\_script\_name;
? ? ? ? ? ? fastcgi\_param ?PATH\_INFO ?$fastcgi\_path\_info;
? ? ? ? ? ? fastcgi\_param ?PATH\_TRANSLATED ?$document\_root$fastcgi\_path\_info;
? ? ? ? ? ? include ? ? ? ?fastcgi\_params;
? ? ? ? }
}
server {
? ? ? ? listen ? ? ? \*:443 ssl http2;
? ? ? ? server\_name ?doamin.com;
? ? ? ? root ? /usr/local/nginx/tsite1;
? ? ? ? ssl\_certificate /usr/local/nginx/conf/ssl/doamin.pem;
? ? ? ? ssl\_certificate\_key /usr/local/nginx/conf/ssl/doamin.key;
? ? ? ? ssl\_session\_timeout 5m;
? ? ? ? ssl\_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
? ? ? ? ssl\_prefer\_server\_ciphers on;
ssl\_ciphers "TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-128-CCM-8-SHA256:TLS13-AES-128-CCM-SHA256:EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
? ? ? ? ssl\_session\_cache builtin:1000 shared:SSL:10m;
? ? ? ? location / {
? ? ? ? ? ? try\_files $uri $uri/ /index.php?$query\_string;
? ? ? ? ? ? index index.php index.html error/index.html;
? ? ? ? ? ? autoindex ?off;
? ? ? ? }
? ? ? ? location ~ \\.php(.\*)$ {
? ? ? ? ? ? fastcgi\_pass ? 127.0.0.1:9000;
? ? ? ? ? ? fastcgi\_index ?index.php;
? ? ? ? ? ? fastcgi\_split\_path\_info ?^((?U).+\\.php)(/?.+)$;
? ? ? ? ? ? fastcgi\_param ?SCRIPT\_FILENAME ?$document\_root$fastcgi\_script\_name;
? ? ? ? ? ? fastcgi\_param ?PATH\_INFO ?$fastcgi\_path\_info;
? ? ? ? ? ? fastcgi\_param ?PATH\_TRANSLATED ?$document\_root$fastcgi\_path\_info;
? ? ? ? ? ? include ? ? ? ?fastcgi\_params;
? ? ? ? }
}
```
- 分布式架構設計概要
- 技術管理
- 1.流程規范
- 2.精準效率
- 3.同步工具
- 代碼審核
- 編程思想
- 控制反轉和依賴注入
- public、private、protected
- MySQL
- MySQL安裝
- MySQL常用
- MySQL主從配置
- 讀寫分離
- 分庫分表
- 高可用
- MySQL集群
- MySQL優化
- MySQL慢查詢優化
- 數據結構
- MySQL備份
- MySQL導出導入
- MSSQL
- 導出導入
- Redis
- Redis日常操作
- Redis安裝
- Redis主從配置
- Redis哨兵
- 隊列
- 分布式式鎖
- Redis集群
- redis的緩存雪崩與緩存穿透
- Linux
- Linux基本操作
- Linux基礎操作1
- Linux安裝
- Linux安裝Nginx
- Linux安裝MySQL
- Linux安裝PHP
- Linux安裝Redis
- Linux安裝Swoole
- Linux安裝Elasticsearch
- Linux安裝Mycat
- Linux優化
- 集群
- 服務器管理
- Nginx
- Nginx 首頁外鏈接出現404問題
- Nginx常用命令行
- LNMP一鍵安裝的404錯誤
- http和https站點設置
- Linux shell expect spawn
- Ubuntu環境
- 寶塔
- 定時任務
- Windows
- 生成OpenSSL證書
- Git
- Git基本操作
- Git練習
- Git上傳到遠程倉庫,遠程倉庫更新到指定文件夾
- Git案例1
- Git案例2
- Git部署
- 遠程連接
- 服務器原理
- 進程和線程
- 騰訊云
- 寶塔命令行
- 消息隊列系統
- RabbitMQ
- RabbitMQ+Laravel
- Kafka
- Elasticsearch
- Laravel+Elasticsearch
- Elasticsearch Demo:ES搜索題目和內容
- 分布式
- PHP
- Laravel高級集成開發
- PHP技術棧
- LNMP
- LNMP+Laravel出現問題
- PHP+MySQL
- PHP連接MySQL
- PHP+Redis
- PHP連接Redis
- PHP+Redis簡單操作
- Laravel+Redis
- Laravel+Swoole
- Swoole
- Swoole TCP案例
- Swoole HTTP案例
- Sswoole WebSocket案例
- Swoole發短信案例
- ThinkPHP
- Java技術棧
- 文檔參考
- docker
- docker一般使用
- docker項目1
- docker+lnmp
- docker搭建wordpress
- Docker部署單體到微服務架構(Laravel)
- Docker部署單體到微服務架構(Spring Boot)
- docker部署vue項目
- Dockerfile
- 其他
- 筆記1
- 筆記2
- 開發速度
- 代碼質量
- 踩過的坑
- 編輯器
- VSCode