X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Flighttpd.conf;h=5f20c6970a2f1c2fe78946a69b1864386ddec614;hb=a7cb0f2ff41c84defa02182cb73eff7a74e3d817;hp=c410fb93533153c079da630b45bb97d97c51b3d7;hpb=fb8291e5712a9bf3cccb4a88a7467e9e691ba5cb;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/lighttpd.conf b/etc/lighttpd/lighttpd.conf index c410fb9..5f20c69 100644 --- a/etc/lighttpd/lighttpd.conf +++ b/etc/lighttpd/lighttpd.conf @@ -69,17 +69,30 @@ server.groupname = "www-data" # Make mysqll frontend available in all domains alias.url += ("/mysql" => "/usr/share/phpmyadmin") + +# Make stats frontend available in all domains. We do a trick with +# redirecting to awstats.pl and aliasing that, since modalias strips the +# trailing / from urls before matching (so we can't alias /stats/ +# without also redirecting /statsfoo). We don't want to put this in +# a conditional either, since that will be mutually exclusive with any +# alias.urls in conditionals for specific vhosts. +url.redirect += ("^/stats$" => "/stats/awstats.pl") +url.redirect += ("^/stats/$" => "/stats/awstats.pl") +cgi.assign += ( "/usr/lib/cgi-bin/awstats.pl" => "" ) +alias.url += ( "/stats/icon" => "/usr/share/awstats/icon" ) +alias.url += ( "/stats/awstats.pl" => "/usr/lib/cgi-bin/awstats.pl" ) + $SERVER["socket"] == ":443" { ssl.engine = "enable" # The CA certificates (in particular, this contains the intermediate # certificate used by startcom). It seems that even without this # option, it already works, probably because openssl ships some # certificates. But, let's put it here to be safe anyway. - ssl.cafile = "/etc/lighttpd/ssl/ca/startssl-all-ca.pem" - # Use the mail.stdout.nl certificate as the default certificate (for + ssl.ca-file = "/etc/lighttpd/ssl/ca/startssl-all-ca.pem" + # Use the mail.stdin.nl certificate as the default certificate (for # non-SNI browsers and domains without their own certificate), since # it is currently the only one we have anyway. - ssl.pemfile = "/etc/lighttpd/ssl/mail.stdout.nl.pem" + ssl.pemfile = "/etc/lighttpd/ssl/mail.stdin.nl.pem" } #### external configuration files @@ -88,3 +101,7 @@ include_shell var.conf-dir + "/scripts/create-mime.assign.pl" ## load vhosts include_shell var.conf-dir + "/scripts/include-vhosts.pl" + +# Include autogenerated logging configuration to have a separate access log +# file for every subdomain. +include var.conf-dir + "/logging.conf"