nginx
Nginx
HTTP response codes
HTTP response codes - HTTP|MDN
HTTP 响应代码 - HTTP|MDN
- 301 - 临时重定向
- 302 - 永久重定向
HTTP Rewrite HTTPS
Converting rewrite rules - nginx.org
server { listen 80; server_name example.org; return 301 https://www.example.org$request_uri; }
PHP 单入口
- .nginx.conf
location / { try_files $uri $uri/ /index.php?$query_string; }
Vue Router
- .ngnix.conf
location / { try_files $uri $uri/ /index.html; }
nginx.txt · 最后更改: 2021/02/17 21:16 由 admin