]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added new config for lighttpd.conf that worked on my 1.28 setup.
authorBrian Tegtmeier <btegtmeier@gmail.com>
Sat, 24 Dec 2011 00:28:31 +0000 (19:28 -0500)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 14 Sep 2013 13:44:44 +0000 (15:44 +0200)
Modified and additionally commented by MMN-o

lighttpd.conf.example

index 99b544952d7ea51a7a5a765f746cfda4472dae0d..c8c72842803774ef2b45a0b818d9975c09056347 100644 (file)
@@ -1,16 +1,13 @@
-# if you're using vhosts, you should have per-vhost server.document-root settings too
-#$HTTP["host"] =~ "^your\.domain\.com$" {
+# If you're using vhosts, you should have per-vhost server.document-root
+#   settings too! Read how in the respective alternative vhost modules.
+
+#$HTTP["host"] =~ "^social\.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"
+# Make sure "mod_rewrite" is enabled in server.modules and change statusnet
+#   to your statusnet directory. (uncommented line is for url root install)
+# url.rewrite-if-not-file = ( "^/statusnet/(.*)$" => "/statusnet/index.php?p=$1" )
+    url.rewrite-if-not-file = ( "^/(.*)$" => "/index.php?p=$1" )
 #}
-