summaryrefslogtreecommitdiff
path: root/network/lighttpd2/conf/lighttpd.conf
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-08 11:40:57 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-08 17:28:33 -0500
commit1efbfb7da270de37c67b7bb8a90890cdaf574a71 (patch)
tree24e329b2601bb72b7d0003b27d08274fb5b4b7cd /network/lighttpd2/conf/lighttpd.conf
parentc5774c9ed118e4a4a506291eea1747faca26f660 (diff)
downloadslackbuilds-1efbfb7da270de37c67b7bb8a90890cdaf574a71.tar.gz
network/lighttpd2: Added (light, fast, and secure webserver).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/lighttpd2/conf/lighttpd.conf')
-rw-r--r--network/lighttpd2/conf/lighttpd.conf57
1 files changed, 57 insertions, 0 deletions
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;
+
+