[packages/stikked] add rewrite rules based on webserver_sampleconfigs/

glen glen at pld-linux.org
Sat Mar 15 19:50:47 CET 2014


commit f5af6f643b20c5cab03a6b584121d82cc3571f69
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Mar 15 20:38:28 2014 +0200

    add rewrite rules based on webserver_sampleconfigs/

 lighttpd.conf | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/lighttpd.conf b/lighttpd.conf
index 764a0b6..00a7274 100644
--- a/lighttpd.conf
+++ b/lighttpd.conf
@@ -1,3 +1,12 @@
+var.stikked_url = "/stikked"
+
 alias.url += (
-	"/stikked" => "/usr/share/stikked",
+	var.stikked_url => "/usr/share/stikked",
+)
+
+url.rewrite-once += (
+	"^" + var.stikked_url + "/static/(.*)$" => "/static/$1",
+	"^" + var.stikked_url + "/favicon\.ico$" => "/favicon.ico",
+	"^" + var.stikked_url + "/robots\.txt$" => "/robots.txt",
+	"^" + var.stikked_url + "/(.*)$" => "/index.php$2",
 )
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/stikked.git/commitdiff/26bb12f2fa838c9074b9262a9c2fa52699764afc



More information about the pld-cvs-commit mailing list