# HG changeset patch # User Christopher Rogers # Date 1314932927 0 # Node ID 3ff3ff15c70009fc519826a60776af0b1baf07de # Parent 8d1e18c4e49999f76d015c69225e17ece17eb034 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. diff -r 8d1e18c4e499 -r 3ff3ff15c700 initramfs/etc/lighttpd/awstats.conf --- a/initramfs/etc/lighttpd/awstats.conf Sat Aug 27 18:35:47 2011 +0000 +++ b/initramfs/etc/lighttpd/awstats.conf Fri Sep 02 03:08:47 2011 +0000 @@ -3,10 +3,10 @@ index-file.names = ( "awstats.pl" ) alias.url = ( - "/awstatsclasses" => "/usr/share/awstats/classes/", - "/awstatscss" => "/usr/share/awstats/css/", + "/classes" => "/usr/share/awstats/classes/", + "/css" => "/usr/share/awstats/css/", "/stats" => "/var/www/cgi-bin/", - "/awstatsicon" => "/usr/share/awstats/icon/" + "/icon" => "/usr/share/awstats/icon/" ) # provide awstats cgi-bin access diff -r 8d1e18c4e499 -r 3ff3ff15c700 initramfs/etc/lighttpd/lighttpd.conf --- a/initramfs/etc/lighttpd/lighttpd.conf Sat Aug 27 18:35:47 2011 +0000 +++ b/initramfs/etc/lighttpd/lighttpd.conf Fri Sep 02 03:08:47 2011 +0000 @@ -89,7 +89,8 @@ "mod_rewrite", "mod_status", "mod_userdir", - "mod_auth" + "mod_auth", + "mod_proxy" ) # User directory module. diff -r 8d1e18c4e499 -r 3ff3ff15c700 initramfs/etc/lighttpd/vhosts-local-tank.conf --- a/initramfs/etc/lighttpd/vhosts-local-tank.conf Sat Aug 27 18:35:47 2011 +0000 +++ b/initramfs/etc/lighttpd/vhosts-local-tank.conf Fri Sep 02 03:08:47 2011 +0000 @@ -26,7 +26,6 @@ server.document-root = "/home/slitaz/www/website" server.errorlog = "/var/log/lighttpd/slitaz.org-error.log" accesslog.filename = "/var/log/lighttpd/slitaz.org-access.log" - include "awstats.conf" index-file.names += ( "index.cgi", "index.php", "index.html" ) cgi.assign = ( @@ -95,6 +94,8 @@ ".cgi" => "/usr/bin/python" ) server.document-root = "/home/slitaz/www/hg" + server.errorlog = "/var/log/lighttpd/hg.slitaz.org-error.log" + accesslog.filename = "/var/log/lighttpd/hg.slitaz.org-access.log" url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" ) auth.backend = "plain" auth.backend.plain.userfile = "/etc/lighttpd/plain.passwd" @@ -132,6 +133,8 @@ # $HTTP["host"] =~ "doc\.slitaz\.org" { server.document-root = "/home/slitaz/www/doc" + server.errorlog = "/var/log/lighttpd/doc.slitaz.org-error.log" + accesslog.filename = "/var/log/lighttpd/doc.slitaz.org-access.log" index-file.names = ("doku.php") var.dokudir = "" # Rewrites for dokuwiki @@ -158,7 +161,8 @@ #) #server.document-root = "/home/slitaz/www/bugs" #url.rewrite-once = ( "(.*)" => "/roundup.cgi$1" ) - + server.errorlog = "/var/log/lighttpd/bugs.slitaz.org-error.log" + accesslog.filename = "/var/log/lighttpd/bugs.slitaz.org-access.log" #url.rewrite = ( "(.*)" => "/bugs$1" ) proxy.server = ( "" => (( "host" => "127.0.0.1", diff -r 8d1e18c4e499 -r 3ff3ff15c700 initramfs/usr/bin/local-mirror --- a/initramfs/usr/bin/local-mirror Sat Aug 27 18:35:47 2011 +0000 +++ b/initramfs/usr/bin/local-mirror Fri Sep 02 03:08:47 2011 +0000 @@ -395,7 +395,10 @@ else echo "$IP_ADDR $hostname" >> /etc/hosts fi - done + done + if [ ! -L /usr/share/awstats/icon/other/slitaz-spider-48x48.png ]; then + ln -s /repos/website/images/artwork/slitaz-spider-48x48.png /usr/share/awstats/icon/other/slitaz-spider-48x48.png + fi if [ "$IP_ADDR" != "127.0.0.1" ]; then if [ ! $(grep -l "dhcp-option=option:router,$ROUTER_IP" /etc/dnsmasq.conf) ]; then echo "$IP_ADDR tazpanel tazpanel.slitaz.org" >> /etc/hosts