摘要: 不能放到location外(全局),会造成重定向死循环 放到location内,因为是同一域名会造成部分uri一起重定向造成页面显示不正常。 加了访问绝对路径 / 同时判断user_agent 为手机 才重定向 第二个location 也是为了死循环 location / { set $a 1; s 阅读全文
posted @ 2021-08-31 18:07 风儿飘 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 用iptables防火墙iptables -F# 允许包从22端口进入iptables -A INPUT -p tcp --dport 22 -j ACCEPT# 允许从22端口进入的包返回iptables -A OUTPUT -p tcp --sport 22 -m state --state E 阅读全文
posted @ 2021-08-31 13:45 风儿飘 阅读(32) 评论(0) 推荐(0) 编辑