############################################################################### # mod_cgi.conf # include'd by lighttpd.conf. # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mod_cgi.conf,v 1.1 2005/08/27 12:36:13 ka0ttic Exp $ ############################################################################### # # see cgi.txt for more information on using mod_cgi # server.modules += ("mod_cgi") # NOTE: this requires mod_alias alias.url = ( "/cgi-bin/" => basedir + "/cgi-bin/", "/viewcvs" => var.basedir + "/cgi-bin/viewcvs/viewcvs.cgi", "/wiki" => "/usr/share/moin/htdocs", "/moin" => "/var/www/localhost/htdocs/moinmoin/moin.cgi", "/blog" => "/var/www/localhost/typo/public/dispatch.cgi", "/hg" => "/home/grant/public_html/hg/hgweb.cgi", "/g2blog" => "/var/www/localhost/cgi-bin/pyblosxom/pyblosxom.cgi", "/mythweb" => "/var/www/localhost/htdocs/mythweb", "/albums" => "/home/sarah/2005_pictures" ) # # Note that you'll also want to enable the # cgi-bin alias via mod_alias (above). # cgi.assign = ( ".cgi" => "", ".py" => "/usr/bin/python" ) $HTTP["url"] =~ "^/cgi-bin/" { # disable directory listings #dir-listing.activate = "disable" dir-listing.activate = "enable" # only allow cgi's in this directory cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "", ".py" => "/usr/bin/python" ) } $HTTP["url"] =~ "^/viewcvs/" { # disable directory listings dir-listing.activate = "disable" # only allow cgi's in this directory cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "", ".py" => "/usr/bin/python" ) } $HTTP["url"] =~ "hg/" { # disable directory listings dir-listing.activate = "disable" # only allow cgi's in this directory cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "", ".py" => "/usr/bin/python" ) } $HTTP["url"] =~ "g2blog" { # disable directory listings dir-listing.activate = "disable" # only allow cgi's in this directory cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "", ".py" => "/usr/bin/python" ) } #$HTTP["host"] =~ "^blog.grantgoodyear.org" { # server.document-root = "/var/www/localhost/typo/public/" # server.error-handler-404 = "/dispatch.cgi" # server.indexfiles = ("dispatch.cgi") # server.errorlog = "/var/log/lighttpd/lighttpd_error.log" # url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" ) #} # vim: set ft=conf foldmethod=marker et :