Nginx#
Nginx 常用作 reverse proxy、static file server、TLS termination、path routing 和轻量访问控制入口。
Links#
https://nginx.org/en/docs/
https://nginx.org/en/docs/http/ngx_http_auth_basic_module.html
https://nginx.org/en/docs/http/ngx_http_proxy_module.html1. Important Points#
use for:
reverse proxy
static file serving
TLS termination
path based routing
basic auth for internal APIs / dashboards
do not use as:
full application authorization system
replacement for SSO / RBAC
public API security by password only2. Pages#
| Page | Use It For |
|---|---|
| Basic Auth | 给接口、内部页面、反代入口加用户名密码认证 |
3. Common Commands#
nginx -t
systemctl reload nginx
systemctl status nginx --no-pager
journalctl -u nginx -n 100 --no-pager
ss -lntp | grep nginx