- 论坛徽章:
- 0
|
使用
location ~* admin {
return 200 http://192.168.1.200/error.html;
}
使用这个配置为什么访问时会变成下载页
且下载后查看里面的内容是http://192.168.1.200/error.html
return
Syntax: return code [ text ]
return code URL
return URL
Default:
Context: server
location
if
Reference: return
This directive concludes execution of the rules and returns the status code indicated to client. It is possible to use any http return code, ranging in number from 0-999. Furthermore, nonstandard code 444 closes the connection without sending any headers.
哪里不对 |
|