summaryrefslogtreecommitdiff
blob: 7e5d4d1843ccde5eba7fa47f9a5b8757edcb0a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
###############################################################################
# Lighttpd configuration for using NUT under Gentoo Linux.
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/lighttpd_nut.conf,v 1.1 2006/05/18 23:28:07 robbat2 Exp $
###############################################################################

# Simple copy this to /etc/lighttpd/ and include it in your lighttpd.conf.
# It will make NUT available at http://$HOST/nut/ 

server.modules += ("mod_cgi")

# If you want to limit it to some host, uncomment the host check and modify it to your needs.
# $HTTP["host"] == "www2.example.org" {
alias.url += ( "/nut/" => "/usr/share/nut/" )
$HTTP["url"] =~ "^/nut/" {
  dir-listing.activate = "disable"
  cgi.assign = ( ".cgi" => "" )
  index-file.names = ( "upsstats.cgi" )
}
# }

# vim: set ft=conf foldmethod=marker et :