Compare commits
8 Commits
dev
...
patch-v0.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eec8007e72 | ||
| 3216858346 | |||
|
|
69d8d28915 | ||
|
|
5f575b8442 | ||
|
|
a1348cdf00 | ||
|
|
2f5e1f7945 | ||
|
|
22ae8166d3 | ||
|
|
af6bc6369d |
@ -136,7 +136,7 @@ func NewHTTPReverseProxy(option HTTPReverseProxyOptions, vhostRouter *Routers) *
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rw.WriteHeader(http.StatusNotFound)
|
rw.WriteHeader(http.StatusBadGateway)
|
||||||
_, _ = rw.Write(getNotFoundPageContent())
|
_, _ = rw.Write(getNotFoundPageContent())
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,24 +29,18 @@ var NotFoundPagePath = ""
|
|||||||
const (
|
const (
|
||||||
NotFound = `<!DOCTYPE html>
|
NotFound = `<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head><title>502 Bad Gateway</title></head>
|
||||||
<title>Not Found</title>
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
width: 35em;
|
|
||||||
margin: 0 auto;
|
|
||||||
font-family: Tahoma, Verdana, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
<body>
|
||||||
<h1>The page you requested was not found.</h1>
|
<center><h1>502 Bad Gateway</h1></center>
|
||||||
<p>Sorry, the page you are looking for is currently unavailable.<br/>
|
<hr><center>apache</center>
|
||||||
Please try again later.</p>
|
|
||||||
<p>The server is powered by <a href="https://github.com/fatedier/frp">frp</a>.</p>
|
|
||||||
<p><em>Faithfully yours, frp.</em></p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
|
<!-- a padding to disable MSIE and Chrome friendly error page -->
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -74,8 +68,8 @@ func NotFoundResponse() *http.Response {
|
|||||||
|
|
||||||
content := getNotFoundPageContent()
|
content := getNotFoundPageContent()
|
||||||
res := &http.Response{
|
res := &http.Response{
|
||||||
Status: "Not Found",
|
Status: "Bad Gateway",
|
||||||
StatusCode: 404,
|
StatusCode: 502,
|
||||||
Proto: "HTTP/1.1",
|
Proto: "HTTP/1.1",
|
||||||
ProtoMajor: 1,
|
ProtoMajor: 1,
|
||||||
ProtoMinor: 1,
|
ProtoMinor: 1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user