Trouble with lighttpd 1.4.40

by R00KIE, Tuesday, July 19, 2016, 01:57 (796 days ago)

Lighttpd was just updated to version 1.4.40 in Arch Linux ARM and selfoss does not work with it.

I have traced the problem to the rewrite rules. I've been trying to get selfoss to work properly by tweaking the rewrite rules but I haven't been able to get it to work 100% correctly.

Any experts in lighttpd here that could provide some help or pointers?

Rules that work with lighttpd 1.4.39:
server.port = 9090
server.document-root = "/usr/share/webapps/selfoss"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "disable"
index-file.names = ( "index.php" )
server.modules += ( "mod_rewrite", "mod_cgi" )
cgi.assign = ( ".php" => "/usr/bin/php-cgi" )
url.rewrite-once = (
"^/public/.*$" => "$0",
"^/favicon.ico$" => "/public/favicon.ico",
"^/favicons/(.*)$" => "/data/favicons/$1",
"^/thumbnails/(.*)$" => "/data/thumbnails/$1",
"^/(.*.(js|ico|gif|jpg|png|css|asc|txt|eot|woff|ttf|svg))$" => "/public/$1",
"^/index.php(.*)$" => "$0",
"^/([^\?]*)(\?(.*))?" => "/index.php?$3",
"^/(.*)" => "/index.php$1"
)
include "/usr/share/doc/lighttpd/config/conf.d/mime.conf"

Rules that do something with lighttpd 1.4.40 but some things are broken:
server.port = 9090
server.document-root = "/usr/share/webapps/selfoss"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "disable"
index-file.names = ( "index.php" )
server.modules += ( "mod_rewrite", "mod_cgi" )
cgi.assign = ( ".php" => "/usr/bin/php-cgi" )
url.rewrite-once = (
"^/public/.*$" => "",
"^/favicon.ico$" => "/public/favicon.ico",
"^/favicons/(.*)$" => "/data/favicons/$1",
"^/thumbnails/(.*)$" => "/data/thumbnails/$1",
"^/(.*.(js|ico|gif|jpg|png|css|asc|txt|eot|woff|ttf|svg))$" => "/public/$1"
# "^/(.*)$" => "",
# "^/([^\?]*)(\?(.*))?" => "/?$3",
# "^/(.*)" => "/?$1"
)
include "/usr/share/doc/lighttpd/config/conf.d/mime.conf"


Complete thread:

 RSS Feed of thread

powered by my little forum