8 "go.stargrave.org/godlighty"
9 _ "go.stargrave.org/godlighty/rc"
13 docRoot := "/usr/local/www/wordpress"
14 host := "some.wordpress.com"
15 godlighty.Hosts[host] = &godlighty.HostCfg{
17 Hooks: []godlighty.Hook{
18 func(w http.ResponseWriter, r *http.Request) bool {
19 if r.URL.Path == "/.htaccess" || r.URL.Path == "/xmlrpc.php" {
25 func(w http.ResponseWriter, r *http.Request) bool {
26 if strings.TrimSuffix(r.URL.Path, "/") == "" {
27 r.URL.Path = "index.php"
29 if strings.HasSuffix(r.URL.Path, ".php") {
31 w, r, host, docRoot, r.URL.Path,
32 "unix", "/var/run/php-fpm.sock",