I'm configuring lighttpd (1.4.26) for drupal on Ubuntu 10 and I've some issues with the rewrite module.
So far I have enabled the rewrite module in lighttpd.conf
Then, I have added the following lines to the configuration file (as written here http://drupal.org/node/43782).
url.rewrite-final = (
"^/system/test/(.*)$" => "/index.php?q=system/test/$1",
"^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
"^/([^.?]*)$" => "/index.php?q=$1",
"^/rss.xml" => "/index.php?q=rss.xml"
)
But What I get is "page not found" for any URL on my server
I also have another question: are there directory-level configuration file with lighttpd, or should I exclusively work with lighttpd.conf ?
thanks
Update I found out I can use a LUA script, but I'm afraid my lighttpd version is not compiled with the mod_magnet module, since I don't see it in the modules list in the configuration file.
$HTTP["host"] == "host.com" {
server.document-root = "/path/to/drupal/site/"
dir-listing.activate = "disable"
magnet.attract-physical-path-to = ("/etc/lighttpd/drupal.lua")
}