How does resizing of images work with lighttpd?
Change your lighttpd rewrite rule to this :

url.rewrite-final = (
"^/system/test/(.*)$" =&gt; "/index.php?q=system/test/$1",
"^/([^.?]*)\?(.*)$" =&gt; "/index.php?q=$1&amp;$2",
"^/([^.?]*)$" =&gt; "/index.php?q=$1",
"^/rss.xml" =&gt; "/index.php?q=rss.xml",
"^/(.+/files/styles/.+\.+.+)\?(.*)$" =&gt; "/index.php?q=$1&amp;$2"
)


That must work. if not disable the clean ulrs to see if the problem is solved or not .