Lighttpd
Lighttpd est un serveur web réputé pour être très léger.
Voici quelques informations pour mieux utiliser et configurer votre lighttpd.
Lighttpd et Awstat
Afin de pouvoir utiliser awstat avec votre serveur lighttpd, voici les modifications à apporter à votre fichier de configuration.
LogFile="/var/log/lighttpd/access.log"
LogType=W
LogFormat="%host %virtualname - %time1 %methodurl %code %bytesd %refererquot %uaquot"
LogType=W
LogFormat="%host %virtualname - %time1 %methodurl %code %bytesd %refererquot %uaquot"
Lighttpd et OpenId (clamshell)
L'installation de Clamshell nécessite plusieurs règles de rewriting. On peut trouver facilement ces règles pour apache2 mais pas pour lighttpd.
Voici de quoi faire marcher clamshell sur votre serveur:
$HTTP["url"] =~ "\.(module|txt|auth)$" {
url.access-deny = ("")
}
index-file.names = ( "clamshell.php" )
url.rewrite-once = (
"^([^\.\?]*)$" => "clamshell.php?u=$1",
"^([^\.\?]*)\?(.*)$" => "clamshell.php?u=$1&$2"
)
$HTTP["querystring"] =~ "openid\.mode=authorize" {
$HTTP["querystring"] =~ "^auth=" {
url.rewrite-once = ( "^(.*)$" => "$1&auth=PHP_AUTH_DIGEST" )
}
}
url.access-deny = ("")
}
index-file.names = ( "clamshell.php" )
url.rewrite-once = (
"^([^\.\?]*)$" => "clamshell.php?u=$1",
"^([^\.\?]*)\?(.*)$" => "clamshell.php?u=$1&$2"
)
$HTTP["querystring"] =~ "openid\.mode=authorize" {
$HTTP["querystring"] =~ "^auth=" {
url.rewrite-once = ( "^(.*)$" => "$1&auth=PHP_AUTH_DIGEST" )
}
}