From 1efbfb7da270de37c67b7bb8a90890cdaf574a71 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 8 Sep 2012 11:40:57 +0200 Subject: network/lighttpd2: Added (light, fast, and secure webserver). Signed-off-by: Matteo Bernardini --- network/lighttpd2/conf/lighttpd.conf | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 network/lighttpd2/conf/lighttpd.conf (limited to 'network/lighttpd2/conf/lighttpd.conf') diff --git a/network/lighttpd2/conf/lighttpd.conf b/network/lighttpd2/conf/lighttpd.conf new file mode 100644 index 0000000000..20b47e840e --- /dev/null +++ b/network/lighttpd2/conf/lighttpd.conf @@ -0,0 +1,57 @@ + +setup { + module_load ( "mod_fastcgi", "mod_status", "mod_access", "mod_accesslog" ); +# mod_access, +# mod_auth, +# mod_balance, +# mod_cache_disk_etag, +# mod_debug, +# mod_deflate, +# mod_dirlist, +# mod_expire, +# mod_flv, +# mod_fortune, +# mod_limit, +# mod_lua, +# mod_memcached, +# mod_openssl, +# mod_progress, +# mod_proxy, +# mod_redirect, +# mod_rewrite, +# mod_scgi, +# mod_userdir, +# mod_vhost, + + listen "0.0.0.0:80"; + listen "[::]:80"; + + log ["debug" => "", "*" => "/var/log/lighttpd2/error.log"]; + accesslog "/var/log/lighttpd2/access.log"; + accesslog.format "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""; + + static.exclude_extensions ( ".php", ".pl", ".fcgi", "~", ".inc" ); +} + +# named action block +php = { + if phys.path =$ ".php" { + if physical.is_file { + fastcgi "unix:/var/run/lighttpd2/www-default-php.sock"; + } + } +}; + +if req.path == "/status" { status.info; } + +include "/etc/lighttpd2/mimetypes.conf"; + +docroot "/var/www/htdocs-lighttpd"; + +index ( "index.php", "index.html", "default.html" ); + +# alias "/phpmyadmin" => "/var/www/htdocs/phpmyadmin"; + +php; + + -- cgit v1.2.3