瀏覽代碼

lighttpd conf; thanks to @cochrandv

Roman Shvets 12 年之前
父節點
當前提交
027477bd71
共有 1 個文件被更改,包括 18 次插入1 次删除
  1. 18 1
      README.md

+ 18 - 1
README.md

@@ -1,4 +1,21 @@
 Pico
 ====
 
-Pico is a stupidly simple, blazing fast, flat file CMS. See http://pico.dev7studios.com for more info.
+Pico is a stupidly simple, blazing fast, flat file CMS. See http://pico.dev7studios.com for more info.
+
+
+
+
+###Running Pico on lighttpd
+
+```
+$HTTP["host"] == "mysite.com" {
+    url.rewrite-once = (
+        "^/pico/content/(.*)\.md" => "/pico/index.php"
+    )
+
+    url.rewrite-if-not-file = (
+        "^/pico/(.*)$" => "/pico/index.php"
+    )
+}
+```