nginx
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版上一修订版两侧同时换到之后的修订记录 | ||
nginx [2021/01/27 09:19] – admin | nginx [2021/02/17 21:15] – admin | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Nginx ====== | ====== Nginx ====== | ||
+ | ===== HTTP response codes ===== | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | * 301 - 临时重定向 | ||
+ | * 302 - 永久重定向 | ||
+ | |||
+ | ===== HTTP Rewrite HTTPS ===== | ||
+ | [[https:// | ||
+ | <code nginx .nginx.conf> | ||
+ | server { | ||
+ | listen | ||
+ | server_name | ||
+ | return | ||
+ | } | ||
+ | </ | ||
+ | |||
===== PHP 单入口 ===== | ===== PHP 单入口 ===== | ||
+ | [[https:// | ||
<code nginx> | <code nginx> | ||
location / { | location / { | ||
行 9: | 行 26: | ||
===== Vue Router ===== | ===== Vue Router ===== | ||
- | <code nginx> | + | [[https:// |
+ | <code nginx .ngnix.conf> | ||
location / { | location / { | ||
try_files $uri $uri/ / | try_files $uri $uri/ / |
nginx.txt · 最后更改: 2021/02/17 21:16 由 admin