seb diff tools/lighttpd.conf @ rev 19
Add lighty custom config file and imprive pkg
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 07 11:36:16 2017 +0100 (2017-03-07) |
parents | |
children | cc1f3876e673 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tools/lighttpd.conf Tue Mar 07 11:36:16 2017 +0100 1.3 @@ -0,0 +1,132 @@ 1.4 +# /etc/lighttpd/lighttpd.conf: SliTaz LightTPD 1.5 +# 1.6 +# Web server configuration file. 1.7 +# 1.8 + 1.9 +# Root documents. 1.10 +server.document-root = "/var/www/" 1.11 + 1.12 +# Port, default for HTTP traffic is 80. 1.13 +server.port = 80 1.14 + 1.15 +# Server, user and group name. 1.16 +server.username = "www" 1.17 +server.groupname = "www" 1.18 + 1.19 +# Server header. 1.20 +# Be nice and keep it at lighttpd and SliTaz GNU/Linux. 1.21 +server.tag = "lighttpd (SliTaz GNU/Linux)" 1.22 + 1.23 +# Directory listings. 1.24 +dir-listing.activate = "enable" 1.25 +dir-listing.encoding = "iso8859-1" 1.26 + 1.27 +# File to open by default. 1.28 +# 1.29 +index-file.names = ( "index.html","index.php", "index.cgi", "index.sh" ) 1.30 + 1.31 +# Log messages. 1.32 +# 1.33 +accesslog.filename = "/var/log/lighttpd/access.log" 1.34 +server.errorlog = "/var/log/lighttpd/error.log" 1.35 + 1.36 +# Server pid file 1.37 +server.pid-file = "/var/run/lighttpd.pid" 1.38 + 1.39 +# MIME type. 1.40 +mimetype.assign = ( 1.41 + ".html" => "text/html", 1.42 + ".txt" => "text/plain", 1.43 + ".js" => "text/javascript", 1.44 + ".css" => "text/css", 1.45 + ".xml" => "text/xml", 1.46 + ".diff" => "text/plain", 1.47 + ".patch" => "text/plain", 1.48 + ".list" => "text/plain", 1.49 + ".log" => "text/plain", 1.50 + ".conf" => "text/plain", 1.51 + ".pdf" => "application/pdf", 1.52 + ".ps" => "application/postscript", 1.53 + ".jpg" => "image/jpeg", 1.54 + ".jpeg" => "image/jpeg", 1.55 + ".png" => "image/png", 1.56 + ".gif" => "image/gif", 1.57 + ".xbm" => "image/x-xbitmap", 1.58 + ".xpm" => "image/x-xpixmap", 1.59 + ".gz" => "application/x-gzip", 1.60 + ".tar.gz" => "application/x-tgz", 1.61 + ".torrent" => "application/x-bittorrent", 1.62 + ".ogg" => "application/ogg", 1.63 + ".cooklist" => "text/plain", 1.64 + ".tazpkg" => "application/x-tazpkg", 1.65 + ".sup" => "application/x-sup", 1.66 + "README" => "text/plain", 1.67 + "receipt" => "text/plain", 1.68 +) 1.69 + 1.70 +# Deny access the file-extensions. 1.71 +url.access-deny = ( "~", ".inc" ) 1.72 + 1.73 +# Modules to load. 1.74 +# See /usr/lib/lighttpd for all available modules. 1.75 +# "mod_status", "mod_fastcgi", "mod_rewrite", 1.76 +server.modules = ( 1.77 + "mod_access", 1.78 + "mod_accesslog", 1.79 + "mod_alias", 1.80 + "mod_cgi", 1.81 + "mod_userdir" 1.82 +) 1.83 + 1.84 +# User directory module. 1.85 +userdir.path = "Public" 1.86 +userdir.exclude-user = ("root") 1.87 + 1.88 +# Status module. 1.89 +#status.status-url = "/server-status" 1.90 + 1.91 +# Compress module 1.92 +#compress.cache-dir = "/var/cache/lighttpd/compress/" 1.93 +#compress.filetype = ("text/plain", "text/html") 1.94 + 1.95 +# CGI module. You can install Perl and assign .pl and .cgi script 1.96 +# to /usr/bin/perl or Python: ".py" => "/usr/bin/python" 1.97 +$HTTP["url"] =~ "/cgi-bin/" { 1.98 + cgi.assign = ( 1.99 + ".sh" => "/bin/sh", 1.100 + ".cgi" => "/bin/sh" 1.101 + ) 1.102 +} 1.103 + 1.104 +# Fast CGI modules for PHP. 1.105 +#fastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" ) 1.106 +#fastcgi.server = ( ".php" => (( 1.107 + #"bin-path" => "/usr/bin/php-cgi", 1.108 + #"socket" => "/tmp/php.socket" 1.109 + #))) 1.110 + 1.111 +# Alias urls for localhost (doc, examples and PHP info). 1.112 +# 1.113 +$HTTP["remoteip"] =~ "127.0.0.1" { 1.114 + alias.url += ( 1.115 + "/doc/" => "/usr/share/doc/", 1.116 + "/licenses/" => "/usr/share/licenses/" 1.117 + ) 1.118 +} 1.119 + 1.120 +#### Virtual hosts 1.121 +# 1.122 +# If you want name-based virtual hosting load mod_simple_vhost. 1.123 +# 1.124 +# You can directly put vhost in this file or use a sepate one for all 1.125 +# virtual hosting. 1.126 +# 1.127 +#include "vhosts.conf" 1.128 + 1.129 +# Example.org 1.130 +# 1.131 +#$HTTP["host"] =~ "(^|\.)example\.org$" { 1.132 + #server.document-root = "/home/vhost/exemple.com/public" 1.133 + #server.errorlog = "/home/vhost/exemple.com/error.log" 1.134 + #accesslog.filename = "/home/vhost/exemple.com/access.log" 1.135 +#}