摘要:
location的匹配 匹配符 匹配规则 优先级 = 精确匹配 1 ^~ 以某个字符串开头 2 ~ 区分大小写的正则匹配 3 ~* 不区分大小写的正则匹配 4 !~ 区分大小写不匹配的正则 5 !~* 不区分大小写不匹配的正则 6 / 通用匹配,任何请求都会匹配到 7 # 通用匹配,任何请求都会匹配 阅读全文
posted @ 2020-07-14 20:00
Gshelldon
阅读(353)
评论(0)
推荐(0)
摘要:
nginx的常用模块 ngx_http_index_module Syntax: index file ...; Default: index index.html; Context: http, server, location location / { index index.html; } n 阅读全文
posted @ 2020-07-14 19:50
Gshelldon
阅读(633)
评论(0)
推荐(0)
摘要:
nginx的日志管理 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$h 阅读全文
posted @ 2020-07-14 19:41
Gshelldon
阅读(2138)
评论(0)
推荐(0)
摘要:
nginx三种虚拟主机配置的方法. 基于端口 在生产环境中一般使用端口或者域名。 [root@web01 /etc/nginx/conf.d]# cat web01.conf server { listen 80; server_name 10.0.0.7; location / { root /c 阅读全文
nginx三种虚拟主机配置的方法. 基于端口 在生产环境中一般使用端口或者域名。 [root@web01 /etc/nginx/conf.d]# cat web01.conf server { listen 80; server_name 10.0.0.7; location / { root /c 阅读全文
posted @ 2020-07-14 19:19
Gshelldon
阅读(788)
评论(0)
推荐(0)

浙公网安备 33010602011771号