puush-api/docs/rewrite.txt
2012-02-08 23:57:12 -04:00

11 lines
356 B
Plaintext

Lighttpd
img\.griefcraft\.com would of course become whatever your image domain is
$HTTP["host"] =~ "^(img\.griefcraft\.com|puush\.me)$" {
server.document-root = "/var/www/servers/img.griefcraft.com/"
url.rewrite-once = (
"^/api/up" => "/upload.php",
"^/([a-zA-Z0-9]+)$" => "/view.php?image=$1"
)
}