slitaz-modular rev 133
local-mirror: Make soft link for slitaz-spider-48x48.png so awstats have icon working. Fixed awstats.conf. Add access and error logs for hg.slitaz.org, bugs.slitaz.org, and doc.slitaz.org.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Sep 02 03:08:47 2011 +0000 (2011-09-02) |
parents | 8d1e18c4e499 |
children | c0c1ee1e1bae |
files | initramfs/etc/lighttpd/awstats.conf initramfs/etc/lighttpd/lighttpd.conf initramfs/etc/lighttpd/vhosts-local-tank.conf initramfs/usr/bin/local-mirror |
line diff
1.1 --- a/initramfs/etc/lighttpd/awstats.conf Sat Aug 27 18:35:47 2011 +0000 1.2 +++ b/initramfs/etc/lighttpd/awstats.conf Fri Sep 02 03:08:47 2011 +0000 1.3 @@ -3,10 +3,10 @@ 1.4 index-file.names = ( "awstats.pl" ) 1.5 1.6 alias.url = ( 1.7 - "/awstatsclasses" => "/usr/share/awstats/classes/", 1.8 - "/awstatscss" => "/usr/share/awstats/css/", 1.9 + "/classes" => "/usr/share/awstats/classes/", 1.10 + "/css" => "/usr/share/awstats/css/", 1.11 "/stats" => "/var/www/cgi-bin/", 1.12 - "/awstatsicon" => "/usr/share/awstats/icon/" 1.13 + "/icon" => "/usr/share/awstats/icon/" 1.14 ) 1.15 1.16 # provide awstats cgi-bin access
2.1 --- a/initramfs/etc/lighttpd/lighttpd.conf Sat Aug 27 18:35:47 2011 +0000 2.2 +++ b/initramfs/etc/lighttpd/lighttpd.conf Fri Sep 02 03:08:47 2011 +0000 2.3 @@ -89,7 +89,8 @@ 2.4 "mod_rewrite", 2.5 "mod_status", 2.6 "mod_userdir", 2.7 - "mod_auth" 2.8 + "mod_auth", 2.9 + "mod_proxy" 2.10 ) 2.11 2.12 # User directory module.
3.1 --- a/initramfs/etc/lighttpd/vhosts-local-tank.conf Sat Aug 27 18:35:47 2011 +0000 3.2 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf Fri Sep 02 03:08:47 2011 +0000 3.3 @@ -26,7 +26,6 @@ 3.4 server.document-root = "/home/slitaz/www/website" 3.5 server.errorlog = "/var/log/lighttpd/slitaz.org-error.log" 3.6 accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log" 3.7 - 3.8 include "awstats.conf" 3.9 index-file.names += ( "index.cgi", "index.php", "index.html" ) 3.10 cgi.assign = ( 3.11 @@ -95,6 +94,8 @@ 3.12 ".cgi" => "/usr/bin/python" 3.13 ) 3.14 server.document-root = "/home/slitaz/www/hg" 3.15 + server.errorlog = "/var/log/lighttpd/hg.slitaz.org-error.log" 3.16 + accesslog.filename = "/var/log/lighttpd/hg.slitaz.org-access.log" 3.17 url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" ) 3.18 auth.backend = "plain" 3.19 auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd" 3.20 @@ -132,6 +133,8 @@ 3.21 # 3.22 $HTTP["host"] =~ "doc\.slitaz\.org" { 3.23 server.document-root = "/home/slitaz/www/doc" 3.24 + server.errorlog = "/var/log/lighttpd/doc.slitaz.org-error.log" 3.25 + accesslog.filename = "/var/log/lighttpd/doc.slitaz.org-access.log" 3.26 index-file.names = ("doku.php") 3.27 var.dokudir = "" 3.28 # Rewrites for dokuwiki 3.29 @@ -158,7 +161,8 @@ 3.30 #) 3.31 #server.document-root = "/home/slitaz/www/bugs" 3.32 #url.rewrite-once = ( "(.*)" => "/roundup.cgi$1" ) 3.33 - 3.34 + server.errorlog = "/var/log/lighttpd/bugs.slitaz.org-error.log" 3.35 + accesslog.filename = "/var/log/lighttpd/bugs.slitaz.org-access.log" 3.36 #url.rewrite = ( "(.*)" => "/bugs$1" ) 3.37 proxy.server = ( "" => (( 3.38 "host" => "127.0.0.1",
4.1 --- a/initramfs/usr/bin/local-mirror Sat Aug 27 18:35:47 2011 +0000 4.2 +++ b/initramfs/usr/bin/local-mirror Fri Sep 02 03:08:47 2011 +0000 4.3 @@ -395,7 +395,10 @@ 4.4 else 4.5 echo "$IP_ADDR $hostname" >> /etc/hosts 4.6 fi 4.7 - done 4.8 + done 4.9 + if [ ! -L /usr/share/awstats/icon/other/slitaz-spider-48x48.png ]; then 4.10 + ln -s /repos/website/images/artwork/slitaz-spider-48x48.png /usr/share/awstats/icon/other/slitaz-spider-48x48.png 4.11 + fi 4.12 if [ "$IP_ADDR" != "127.0.0.1" ]; then 4.13 if [ ! $(grep -l "dhcp-option=option:router,$ROUTER_IP" /etc/dnsmasq.conf) ]; then 4.14 echo "$IP_ADDR tazpanel tazpanel.slitaz.org" >> /etc/hosts