mirror of https://github.com/perkeep/perkeep.git
robots.txt
This commit is contained in:
parent
61bbb65e5f
commit
7c9400ac7f
|
@ -197,6 +197,7 @@ func main() {
|
||||||
|
|
||||||
mux := http.DefaultServeMux
|
mux := http.DefaultServeMux
|
||||||
mux.Handle("/favicon.ico", http.FileServer(path.Join(*root, "static"), "/"))
|
mux.Handle("/favicon.ico", http.FileServer(path.Join(*root, "static"), "/"))
|
||||||
|
mux.Handle("/robots.txt", http.FileServer(path.Join(*root, "static"), "/"))
|
||||||
mux.Handle("/static/", http.FileServer(path.Join(*root, "static"), "/static/"))
|
mux.Handle("/static/", http.FileServer(path.Join(*root, "static"), "/static/"))
|
||||||
|
|
||||||
testCgi := &CgiHandler{ExecutablePath: path.Join(*root, "test.cgi"),
|
testCgi := &CgiHandler{ExecutablePath: path.Join(*root, "test.cgi"),
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# *sigh* well-known URLs. (plug: http://tools.ietf.org/html/rfc5785)
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /nothing-actually/
|
Loading…
Reference in New Issue