Posted by spflanze on December 10, 2010 at 4:34pm
My lighttpd server is serving both a Drupal based dynamic content website and a static content website. On the dynamic website Garret Albright's LUA script at: http://groups.drupal.org/node/22787 works like a charm.
But on the static website it seems to cause Lighttpd to ignore the configuration file directive:
server.indexfiles = ("index.php", "index.html", "index.htm", "default.htm")Also tried:
index-file.names = ("/index.php", "/index.html", "/index.htm", "/default.htm")When the LUA script is in effect I can access the static site by http://example.com/index.html but not by
http://example.com/. In the latter case I get a 404 error in the browser.
This is the part of the configuration file that maps a request to the document root:
$HTTP["host"] =~ "^(?:www\.|)example\.com$" {
server.document-root = "/var/customers/webs/Webmaster/example.com/"
alias.url = ( "/webalizer/" => "/var/customers/webs/Webmaster/webalizer" )
accesslog.filename = "/var/customers/logs/Webmaster-access.log"
}Since http://example.com/ is how most people get to the site I cannot have this LUA script in effect until this problem is solved.