X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mods%2Fsample-Lighttpd.config;h=9b9a264708b7bb222762554d2b1cc8734ab3eec0;hb=35e3e912df957fe6ed78b670bae5f5442289e7dd;hp=1c83700609c180fbee48df3e78cad5bbc4948006;hpb=4d30f2b292ec0b77de13cae3c622df84f84aa54f;p=friendica.git diff --git a/mods/sample-Lighttpd.config b/mods/sample-Lighttpd.config index 1c83700609..9b9a264708 100644 --- a/mods/sample-Lighttpd.config +++ b/mods/sample-Lighttpd.config @@ -22,7 +22,7 @@ the requested URL. Enjoy! On Debian Jessie with lighttpd 1.4.35-4 there was a problem encountered -between curl (which is used by Friendica in the background) and lighttp. +between curl (which is used by Friendica in the background) and lighttpd. This problem caused requests being served with an error code of 417 in the logs and no delivery of postings from the contacts. @@ -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"