server.reject-expect-100-with-417 = "disable" debug.log-request-handling = "enable" debug.log-file-not-found = "enable" debug.log-request-header-on-error = "enable" var.basedir = "/var/www/webapp1" var.logdir = "/var/log/lighttpd" var.statedir = "/var/lib/lighttpd" server.modules = ( "mod_rewrite", "mod_access", "mod_auth", "mod_simple_vhost", "mod_accesslog" ) include "mime-types.conf" include "mod_cgi.conf" server.username = "lighttpd" server.groupname = "lighttpd" server.document-root = var.basedir + "/htdocs" server.pid-file = "/var/run/lighttpd.pid" server.errorlog = var.logdir + "/error.log" server.indexfiles = ("index.php", "index.html", "index.htm", "default.htm") server.follow-symlink = "enable" server.error-handler-404 = "/cgi-bin/webapp1.cgi" static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi") accesslog.filename = var.logdir + "/access.log" url.access-deny = ("~", ".inc") url.rewrite = ( "^/?$" => "/cgi-bin/redirect.cgi", ) $HTTP["request-method"] =~ "^(PUT|DELETE)$" { url.rewrite = ( "^(.*)$" => "/cgi-bin/webapp1.cgi/$1" ) } $SERVER["socket"] == ":443" { ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/server.pem" } $HTTP["scheme"] == "https" { server.document-root = "/var/www/localhost/htdocs" accesslog.filename = "/var/log/lighttpd/mvs.access.log" cgi.assign = ( "anf" => "", "plot" => "" ) auth.backend = "ldap" auth.backend.ldap.hostname = "mylap.mydomain.net" auth.backend.ldap.base-dn = "ou=Accounts,dc=mydomain,dc=sw,dc=org" auth.backend.ldap.filter = "(&(samaccountname=$)(memberof:1.2.822.1234.1.4.1941:ou=Groups,dc=mydomain,dc=sw,dc=org))" auth.backend.ldap.bind-dn = "CN=ABDE,OU=Logons,OU=Accounts,DC=mydomain,DC=sw,DC=org" auth.backend.ldap.allow-empty-pw = "disable" auth.require = ( "/" => ( "method" => "basic", "realm" => "My Domain", "require" => "valid-user" ) ) url.rewrite = ( "^/$" => "/cgi-bin/anf", ) } $HTTP["host"] =~ "widgets$|widgets.mydomain.net" { server.document-root = "/var/www/widgets/" url.rewrite = ( "^/?$" => "/index.html", ) } ~ ~ ~