Skip to content

Commit

Permalink
Add custom 404 error page and robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
whym authored and tools.whois committed May 17, 2020
1 parent 2e9070b commit 257acd8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .lighttpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ url.redirect = (
"/w/(%20|%E2%80%8E)*([^/%]+)(%20|%E2%80%8E)*/(|lookup)/?$" => "//whois.toolforge.org/w/$2/$4",
)
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
server.error-handler-404 = "/notfound.html"
#accesslog.filename = "/data/project/whois/access.log"
14 changes: 14 additions & 0 deletions public_html/notfound.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
<p>Requested URL not found.</p>
<p>This tool is <a href="https://github.com/whym/whois-gateway/issues/16">in migration</a>. If you believe something that should work is not working, please report the issue including the URL.</p>
</body>
</html>

2 changes: 2 additions & 0 deletions public_html/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-Agent: *
Disallow: /gateway.py

0 comments on commit 257acd8

Please sign in to comment.