Location规则
精确匹配=规则
/规则 匹配到 /opt/test/test.txt
Alias规则
^~规则
Root =192.168.199.132 相当于/opt/
~正则匹配(区分大小写)
~* 不区分大小写正则匹配
access模块
拒绝除192.168.199.1的Ip访问
Basic模块
登录页面需要密码
rewrite模块
132重定向134
134配置如下
132配置
最后输入192.168.199.132/*进入192.168.199.134
132结合正则匹配
if指令
rerurn指令
从其他虚拟机curl
Set指令
Http-referer模块
防盗链
132为原始服务器
134为盗链服务器
132 conf配置如下
/data/index.html配置如下
134
Conf
配置如下
/usr/share/nginx/html/index.html配置如下
结果
http_header模块
加入报文头
132配置如下
http_ssl模块
颁发证书
Http_proxy模块
代理服务器
132conf配置如下
Http_fastcgi
监听访问次数