]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lighttpd.conf.example
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / lighttpd.conf.example
index b8baafc9e36ec6ef75ee176c47ce6b3942927b8e..99b544952d7ea51a7a5a765f746cfda4472dae0d 100644 (file)
@@ -1,2 +1,16 @@
-# Add this line to lighttpd.conf to enable pseudo-rewrites using 404s
-server.error-handler-404 = "/index.php"
+# if you're using vhosts, you should have per-vhost server.document-root settings too
+#$HTTP["host"] =~ "^your\.domain\.com$" {
+    # NOTE: fastcgi/cgi/fpm config here if you're using per-user cgi/fpm
+
+    dir-listing.activate = "disable"
+    url.rewrite-once = (
+        "^/(.*)\.(.*)" => "$0",
+        "^/(avatar|file|js|plugins|theme)/" => "$0",
+        "^/(.+)$" => "/index.php/$1",
+        )
+
+    # Add this line to lighttpd.conf to enable pseudo-rewrites using 404s
+    # (required for fancy URLs)
+    server.error-handler-404 = "/index.php"
+#}
+