]> git.mxchange.org Git - friendica.git/blobdiff - mods/sample-Lighttpd.config
spelling: ignore
[friendica.git] / mods / sample-Lighttpd.config
index 1c83700609c180fbee48df3e78cad5bbc4948006..1f37815f631358da1a84a25611759c77d16cb1e5 100644 (file)
@@ -30,7 +30,7 @@ One can solve the issue by adding
 
     server.reject-expect-100-with-417 = "disable"
 
-to the lighttpd configuratiion file (e.g. in the beginning with the
+to the lighttpd configuration file (e.g. in the beginning with the
 other 'server.xxx' settings.
 
 ---------------( config starts )-----------------
@@ -102,9 +102,12 @@ $HTTP["scheme"] == "https" {
         # Got the following 'Drupal Clean URL'after Mike suggested trying
         # something along those lines, from http://drupal.org/node/1414950
         url.rewrite-if-not-file = (
-            "^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2",
-            "^\/(.*)$" => "/index.php?q=$1"
+            "^\/([^\?]*)\?(.*)$" => "/index.php?pagename=$1&$2",
+            "^\/(.*)$" => "/index.php?pagename=$1"
         )
+        $HOST["url"] =~ "^/bin/" {
+            url.access.deny ( "" )
+        }
     }
     else $HTTP["host"] !~ "(friendica.example.com|wordpress.example.com)" {
         server.document-root = "/var/www/wordpress"