Skip to content

Lighttpd configuration

polohb edited this page Mar 16, 2013 · 14 revisions

lighttpd configuration

 url.rewrite-once += (
 "^/selfoss/favicon.ico$" => "/selfoss/public/favicon.ico",
 "^/selfoss/favicons/(.*)$" => "/selfoss/data/favicons/$1",
 "^/selfoss/thumbnails/(.*)$" => "/selfoss/data/thumbnails/$1",
 "^/selfoss/(.*.(js|ico|gif|jpg|png|css|asc|txt|eot|woff|ttf|svg))$" => "/selfoss/public/$1",
 "^/selfoss/index.php(.*)$" => "$0",
 "^/selfoss/([^\?]+)(\?(.*))?" => "/selfoss/index.php?$3",
 "^/selfoss/public/" => "$0",
 "^/selfoss/(.*)" => "/selfoss/index.php?$1"
 )

This is in the case that you have selfoss installed in a subdirectory named selfoss, like http://yourdomain/selfoss/

If you have installed selfoss at the root folder of your web serveur, then you just need to remove selfoss references from the rules above.