提交 9a68a4b2 authored 作者: zhanrongzhen's avatar zhanrongzhen

定制通号if filename == 2270549058.css then

上级 c7ec5c3d
......@@ -51,6 +51,12 @@ http {
location /fileserver/ {
content_by_lua_block {
local filename = string.match(ngx.var.uri, "([^/]+)$")
if filename == "2270549058.css" then
ngx.status = ngx.HTTP_NOT_FOUND
ngx.header["Content-Type"] = "text/html; charset=utf-8"
ngx.say("<html><body><h1>404 - File Not Found</h1><p>The requested file does not exist.</p></body></html>")
return ngx.exit(ngx.HTTP_NOT_FOUND)
end
local current_uri = ngx.var.uri
-- 判断是不是蒙城网站的验证码
local filepath
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论