slitaz-modular diff core/overlay/etc/lighttpd/vhosts-tank.conf @ rev 27

Updated core profile. Added local-mirror script. Local-mirror will allow one to use the hg repos on slitaz to make a local network of slitaz.org.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Feb 23 05:03:35 2011 +0000 (2011-02-23)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/core/overlay/etc/lighttpd/vhosts-tank.conf	Wed Feb 23 05:03:35 2011 +0000
     1.3 @@ -0,0 +1,209 @@
     1.4 +# /etc/lighttpd/vhosts.conf : Virtual hosts configuration file.
     1.5 +#
     1.6 +
     1.7 +# Nice url's for Drupal
     1.8 +#
     1.9 +#url.rewrite-final = (
    1.10 +#  "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
    1.11 +#  "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
    1.12 +#  "^/([^.?]*)$" => "/index.php?q=$1",
    1.13 +#   "^/rss.xml" => "/index.php?q=rss.xml"
    1.14 +#  )
    1.15 +
    1.16 +# tank.slitaz.org (Server canonical hostname)
    1.17 +#
    1.18 +$HTTP["host"] =~ "tank\.slitaz\.org$" {
    1.19 +  server.document-root = "/home/slitaz/www/tank"
    1.20 +  server.errorlog = "/var/log/lighttpd/tank.slitaz.org-error.log"
    1.21 +  accesslog.filename = "/var/log/lighttpd/tank.slitaz.org-access.log"
    1.22 +  include "awstats.conf"
    1.23 +  index-file.names += ( "index.php" )
    1.24 +}
    1.25 +
    1.26 +# slitaz.org
    1.27 +#
    1.28 +$HTTP["host"] =~ "(^|www\.)slitaz\.org$" {
    1.29 +  server.document-root = "/home/slitaz/www/website"
    1.30 +  server.errorlog = "/var/log/lighttpd/slitaz.org-error.log"
    1.31 +  accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log"
    1.32 +  
    1.33 +  include "awstats.conf"
    1.34 +  index-file.names += ( "index.php" )
    1.35 +  index-file.names += ( "index.html" )
    1.36 +  
    1.37 +  url.rewrite-once = (
    1.38 +    "^/about" => "/fr/about",
    1.39 +	"^/artwork" => "/fr/artwork",
    1.40 +	"^/devel" => "/fr/devel",
    1.41 +    "^/doc" => "/fr/doc",
    1.42 +	"^/get" => "/fr/get",
    1.43 +	"^/packages" => "/fr/packages"
    1.44 +  )
    1.45 + 
    1.46 +}
    1.47 +
    1.48 +# pro.slitaz.org
    1.49 +#
    1.50 +$HTTP["host"] =~ "pro\.slitaz\.org$" {
    1.51 +  server.document-root = "/home/slitaz/www/pro"
    1.52 +  server.errorlog = "/var/log/lighttpd/pro.slitaz.org-error.log"
    1.53 +  accesslog.filename = "/var/log/lighttpd/pro.slitaz.org-access.log"
    1.54 +  url.rewrite-final = (
    1.55 +    "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
    1.56 +    "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
    1.57 +    "^/([^.?]*)$" => "/index.php?q=$1",
    1.58 +    "^/rss.xml" => "/index.php?q=rss.xml"
    1.59 +  )
    1.60 +}
    1.61 +
    1.62 +# people.slitaz.org
    1.63 +#
    1.64 +$HTTP["host"] =~ "people\.slitaz\.org$" {
    1.65 +  userdir.path = "Public"
    1.66 +  userdir.exclude-user = ("root")
    1.67 +  server.document-root = "/home/slitaz/www/people"
    1.68 +  server.errorlog = "/var/log/lighttpd/people.slitaz.org-error.log"
    1.69 +  accesslog.filename = "/var/log/lighttpd/people.slitaz.org-access.log"
    1.70 +}
    1.71 +
    1.72 +# boot.slitaz.org
    1.73 +#
    1.74 +$HTTP["host"] =~ "boot\.slitaz\.org$" {
    1.75 +  server.document-root = "/home/slitaz/www/boot"
    1.76 +  server.errorlog = "/var/log/lighttpd/boot.slitaz.org-error.log"
    1.77 +  accesslog.filename = "/var/log/lighttpd/boot.slitaz.org-access.log"
    1.78 +}
    1.79 +
    1.80 +# pkgs.slitaz.org
    1.81 +#
    1.82 +$HTTP["host"] =~ "pkgs\.slitaz\.org$" {
    1.83 +  server.document-root = "/home/slitaz/www/pkgs"
    1.84 +  server.errorlog = "/var/log/lighttpd/pkgs.slitaz.org-error.log"
    1.85 +  accesslog.filename = "/var/log/lighttpd/pkgs.slitaz.org-access.log"
    1.86 +  cgi.assign = (
    1.87 +    ".cgi" => "/bin/sh"
    1.88 +  )
    1.89 +}
    1.90 +
    1.91 +# bb.slitaz.org (Build Bot)
    1.92 +#
    1.93 +$HTTP["host"] =~ "bb\.slitaz\.org$" {
    1.94 +  server.document-root = "/home/slitaz/www/bb"
    1.95 +  server.errorlog = "/var/log/lighttpd/bb.slitaz.org-error.log"
    1.96 +  accesslog.filename = "/var/log/lighttpd/bb.slitaz.org-access.log"
    1.97 +}
    1.98 +
    1.99 +# hg.slitaz.org (Mercurial repos)
   1.100 +#
   1.101 +$HTTP["host"] =~ "hg\.slitaz\.org" {
   1.102 +  cgi.assign = (
   1.103 +    ".cgi" => "/usr/bin/python"
   1.104 +  )
   1.105 +  server.document-root = "/home/slitaz/www/hg"
   1.106 +  url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
   1.107 +}
   1.108 +
   1.109 +# repos.slitaz.org (Mercurial repos with auth and write access)
   1.110 +#
   1.111 +$HTTP["host"] =~ "repos\.slitaz\.org" {
   1.112 +  cgi.assign = (
   1.113 +    ".cgi" => "/usr/bin/python"
   1.114 +  )
   1.115 +  server.document-root = "/home/slitaz/www/hg"
   1.116 +  url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
   1.117 +  auth.backend = "plain"
   1.118 +  auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd"
   1.119 +  auth.require = ( "/" =>
   1.120 +    (
   1.121 +    "method" => "basic",
   1.122 +    "realm" => "SliTaz Mercurial repositories protected area",
   1.123 +    "require" => "valid-user"
   1.124 +    )
   1.125 +  )
   1.126 +
   1.127 +}
   1.128 +
   1.129 +# doc.slitaz.org
   1.130 +#
   1.131 +$HTTP["host"] =~ "doc\.slitaz\.org" {
   1.132 +  server.document-root = "/home/slitaz/www/doc"
   1.133 +  index-file.names = ("doku.php") 
   1.134 +  var.dokudir = ""
   1.135 +   # Rewrites for dokuwiki
   1.136 +    url.rewrite = (
   1.137 +      "^" + var.dokudir + "/lib/.*$"              => "$0",
   1.138 +      "^" + var.dokudir + "/_media/(.*)?\?(.*)$"  => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
   1.139 +      "^" + var.dokudir + "/_media/(.*)$"         => var.dokudir + "/lib/exe/fetch.php?media=$1",
   1.140 +      "^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
   1.141 +      "^" + var.dokudir + "/_detail/(.*)?$"       => var.dokudir + "/lib/exe/detail.php?media=$1",
   1.142 +      "^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
   1.143 +      "^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
   1.144 +      "^" + var.dokudir + "/doku.php.*"           => "$0",
   1.145 +      "^" + var.dokudir + "/feed.php.*"           => "$0",
   1.146 +      "^" + var.dokudir + "/(.*)\?(.*)"           => var.dokudir + "/doku.php?id=$1&$2",
   1.147 +      "^" + var.dokudir + "/(.*)"                 => var.dokudir + "/doku.php?id=$1"
   1.148 +    )
   1.149 +}
   1.150 +
   1.151 +# scn.slitaz.org
   1.152 +#
   1.153 +$HTTP["host"] =~ "scn\.slitaz\.org$" {
   1.154 +  server.document-root = "/home/slitaz/www/scn"
   1.155 +  server.errorlog = "/var/log/lighttpd/scn.slitaz.org-error.log"
   1.156 +  accesslog.filename = "/var/log/lighttpd/scn.slitaz.org-access.log"
   1.157 +  url.rewrite-final = (
   1.158 +    "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
   1.159 +    "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
   1.160 +    "^/([^.?]*)$" => "/index.php?q=$1",
   1.161 +    "^/rss.xml" => "/index.php?q=rss.xml"
   1.162 +  )
   1.163 +}
   1.164 +
   1.165 +# store.slitaz.org
   1.166 +#
   1.167 +$HTTP["host"] =~ "store\.slitaz\.org$" {
   1.168 +  server.document-root = "/home/slitaz/www/store"
   1.169 +  server.errorlog = "/var/log/lighttpd/store.slitaz.org-error.log"
   1.170 +  accesslog.filename = "/var/log/lighttpd/store.slitaz.org-access.log"
   1.171 +}
   1.172 +
   1.173 +# groups.slitaz.org
   1.174 +#
   1.175 +$HTTP["host"] =~ "groups\.slitaz\.org$" {
   1.176 +  server.document-root = "/home/slitaz/www/groups"
   1.177 +  server.errorlog = "/var/log/lighttpd/groups.slitaz.org-error.log"
   1.178 +  accesslog.filename = "/var/log/lighttpd/groups.slitaz.org-access.log"
   1.179 +  url.rewrite-final = (
   1.180 +    "^/system/test/(.*)$" => "/index.php?q=system/test/$1",
   1.181 +    "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
   1.182 +    "^/([^.?]*)$" => "/index.php?q=$1",
   1.183 +    "^/rss.xml" => "/index.php?q=rss.xml"
   1.184 +  )
   1.185 +}
   1.186 +
   1.187 +# These hosts are personnal website for me and my family, pankso.
   1.188 +
   1.189 +
   1.190 +# libordux
   1.191 +#
   1.192 +$HTTP["host"] =~ "(^|\.)libordux\.$" {
   1.193 +  server.document-root = "/home/pankso/vhosts/libordux"
   1.194 +  server.errorlog = "/var/log/lighttpd/libordux.error.log"
   1.195 +  accesslog.filename = "/var/log/lighttpd/libordux.access.log"
   1.196 +}
   1.197 +
   1.198 +# lincolm.ch
   1.199 +#
   1.200 +$HTTP["host"] =~ "(^|\.)lincolm\.ch$" {
   1.201 +  server.document-root = "/home/pankso/vhosts/lincolm"
   1.202 +  server.errorlog = "/var/log/lighttpd/lincolm-error.log"
   1.203 +  accesslog.filename = "/var/log/lighttpd/lincolm-access.log"
   1.204 +}
   1.205 +
   1.206 +# solufina.ch
   1.207 +#
   1.208 +$HTTP["host"] =~ "(^|\.)solufina\.ch$" {
   1.209 +  server.document-root = "/home/pankso/vhosts/solufina"
   1.210 +  server.errorlog = "/var/log/lighttpd/solufina.log"
   1.211 +  accesslog.filename = "/var/log/lighttpd/solufina.log"
   1.212 +}