slitaz-modular rev 75

Removed old common.conf file. Add awstats.conf and lighttpd.conf files to initramfs/etc/lighttpd folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Apr 14 13:14:39 2011 +0000 (2011-04-14)
parents 6bf6e8a4a700
children 3ce12b08e588
files initramfs/etc/lighttpd/awstats.conf initramfs/etc/lighttpd/common.conf initramfs/etc/lighttpd/lighttpd.conf
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/initramfs/etc/lighttpd/awstats.conf	Thu Apr 14 13:14:39 2011 +0000
     1.3 @@ -0,0 +1,19 @@
     1.4 +# Config file for running  AWStats with Lighttpd
     1.5 +
     1.6 +index-file.names = ( "awstats.pl" )
     1.7 +
     1.8 +alias.url = (
     1.9 +                "/awstatsclasses" => "/usr/share/awstats/classes/",
    1.10 +                "/awstatscss" => "/usr/share/awstats/css/",
    1.11 +                "/stats" => "/var/www/cgi-bin/",
    1.12 +                "/awstatsicon" => "/usr/share/awstats/icon/"
    1.13 +              )
    1.14 +			  
    1.15 +# provide awstats cgi-bin access
    1.16 +$HTTP["url"] =~ "/stats" {
    1.17 +      cgi.assign = ( ".pl" => "/usr/bin/perl" )
    1.18 +}
    1.19 +
    1.20 +#url.rewrite-once = ( "^/awstats.pl(.*)" => "/stats/awstats.pl$1" )
    1.21 +
    1.22 +
     2.1 --- a/initramfs/etc/lighttpd/common.conf	Thu Apr 14 13:13:09 2011 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,3 +0,0 @@
     2.4 -
     2.5 -var.basedir = "/home/slitaz/www/"
     2.6 -var.logdir = "/var/log/lighttpd/"
     2.7 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/initramfs/etc/lighttpd/lighttpd.conf	Thu Apr 14 13:14:39 2011 +0000
     3.3 @@ -0,0 +1,160 @@
     3.4 +# /etc/lighttpd/lighttpd.conf: SliTaz LightTPD
     3.5 +# Web server configuration file.
     3.6 +# Configuration du serveur web.
     3.7 +#
     3.8 +# Documentation : /usr/share/doc/slitaz/handbook/web-server.html
     3.9 +#                 http://trac.lighttpd.net/trac/wiki#Documentation
    3.10 +#
    3.11 +#
    3.12 +
    3.13 +# Root documents.
    3.14 +#
    3.15 +server.document-root = "/var/www/"
    3.16 +
    3.17 +# Port, default for HTTP traffic is 80.
    3.18 +#
    3.19 +server.port = 80
    3.20 +
    3.21 +# Server, user and group name.
    3.22 +#
    3.23 +server.username = "www"
    3.24 +server.groupname = "www"
    3.25 +
    3.26 +# Server header.
    3.27 +# Be nice and keep it at lighttpd and SliTaz GNU/Linux.
    3.28 +#
    3.29 +server.tag = "lighttpd (SliTaz GNU/Linux)"
    3.30 +
    3.31 +# Directory listings.
    3.32 +#
    3.33 +dir-listing.activate = "enable"
    3.34 +dir-listing.encoding = "iso8859-1"
    3.35 +
    3.36 +# File to open by default.
    3.37 +#
    3.38 +index-file.names = ( "index.html","index.php", "index.cgi", "index.sh" )
    3.39 +
    3.40 +# Log messages.
    3.41 +#
    3.42 +accesslog.filename = "/var/log/lighttpd/access.log"
    3.43 +server.errorlog  = "/var/log/lighttpd/error.log"
    3.44 +
    3.45 +# Server pid file
    3.46 +server.pid-file = "/var/run/lighttpd.pid"
    3.47 +
    3.48 +# MIME type.
    3.49 +#
    3.50 +mimetype.assign = (
    3.51 +  ".html" => "text/html",
    3.52 +  ".txt" => "text/plain",
    3.53 +  ".js" => "text/javascript",
    3.54 +  ".css" => "text/css",
    3.55 +  ".xml" => "text/xml",
    3.56 +  ".diff" => "text/plain",
    3.57 +  ".patch" => "text/plain",
    3.58 +  ".list" => "text/plain",
    3.59 +  ".log" => "text/plain",
    3.60 +  ".conf" => "text/plain",
    3.61 +  ".pdf" => "application/pdf",
    3.62 +  ".ps" => "application/postscript",
    3.63 +  ".jpg" => "image/jpeg",
    3.64 +  ".jpeg" => "image/jpeg",
    3.65 +  ".png" => "image/png",
    3.66 +  ".gif" => "image/gif",
    3.67 +  ".xbm" => "image/x-xbitmap",
    3.68 +  ".xpm" => "image/x-xpixmap",
    3.69 +  ".gz" => "application/x-gzip",
    3.70 +  ".tar.gz" => "application/x-tgz",
    3.71 +  ".torrent" => "application/x-bittorrent",
    3.72 +  ".ogg" => "application/ogg",
    3.73 +  ".cooklist" => "text/plain",
    3.74 +  ".tazpkg" => "application/x-tazpkg",
    3.75 +  "README" => "text/plain",
    3.76 +  "receipt" => "text/plain",
    3.77 +)
    3.78 +
    3.79 +# Deny access the file-extensions.
    3.80 +#
    3.81 +url.access-deny = ( "~", ".inc" )
    3.82 +
    3.83 +# Modules to load.
    3.84 +# See /usr/lib/lighttpd for all available modules.
    3.85 +#
    3.86 +server.modules = (
    3.87 +  "mod_fastcgi",
    3.88 +  "mod_access",
    3.89 +  "mod_accesslog",
    3.90 +  "mod_alias",
    3.91 +  "mod_cgi",
    3.92 +  "mod_rewrite",
    3.93 +  "mod_status",
    3.94 +  "mod_userdir",
    3.95 +  "mod_auth"
    3.96 +)
    3.97 +
    3.98 +# User directory module.
    3.99 +#
   3.100 +userdir.path = "Public"
   3.101 +userdir.exclude-user = ("root")
   3.102 +
   3.103 +# Status module.
   3.104 +#
   3.105 +status.status-url = "/server-status"
   3.106 +
   3.107 +# Compress module
   3.108 +#
   3.109 +compress.cache-dir = "/var/cache/lighttpd/compress/"
   3.110 +compress.filetype  = ("text/plain", "text/html", "text/css", "text/xml", "text/javascript")
   3.111 +
   3.112 +## CGI module. You can install Perl and assign .pl and .cgi script
   3.113 +# to /usr/bin/perl.
   3.114 +#
   3.115 +$HTTP["url"] =~ "/cgi-bin/" {
   3.116 +  cgi.assign = (
   3.117 +    ".sh" => "/bin/sh",
   3.118 +    ".cgi" => "/bin/sh"
   3.119 +  )
   3.120 +}
   3.121 +
   3.122 +# Fast CGI modules for PHP.
   3.123 +fastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )
   3.124 +#
   3.125 +fastcgi.server = ( ".php" => (( 
   3.126 +  "bin-path" => "/usr/bin/php-cgi",
   3.127 +  "socket" => "/tmp/php.socket"
   3.128 +  )))
   3.129 +  #)))
   3.130 +
   3.131 +# Alias urls for localhost (doc, examples and PHP info).
   3.132 +#
   3.133 +$HTTP["remoteip"] =~ "127.0.0.1" {
   3.134 +  alias.url += (
   3.135 +    "/doc/" => "/usr/share/doc/",
   3.136 +    "/examples/" => "/usr/share/examples/",
   3.137 +    "/phpinfo/" => "/usr/share/phpinfo/"
   3.138 +  )
   3.139 +}
   3.140 +
   3.141 +## Virtual hosts.
   3.142 +#
   3.143 +# If you want name-based virtual hosting load mod_simple_vhost.
   3.144 +#
   3.145 +# You can directly put vhost in this file or use a sepate one for all
   3.146 +# virtual hosting.
   3.147 +#
   3.148 +include "vhosts.conf"
   3.149 +
   3.150 +# Example.org
   3.151 +#
   3.152 +#$HTTP["host"] =~ "(^|\.)example\.org$" {
   3.153 +  #server.document-root = "/var/www/vhost/exemple.com/html"
   3.154 +  #server.errorlog = "/var/log/lighttpd/example.org-error.log"
   3.155 +  #accesslog.filename = "/var/log/lighttpd/example.org-access.log"
   3.156 +#}
   3.157 +
   3.158 +# Deny access for all image stealers (anti-hotlinking for images)
   3.159 +#
   3.160 +#$HTTP["referer"] !~ "^($|http://www\.example\.org)" {
   3.161 +#  url.access-deny = ( ".jpg", ".jpeg", ".png" )
   3.162 +#}
   3.163 +