2 # Sample configuration using WEBrick, mainly intended dev/testing
3 # for folks familiar with Ruby and not various Perl webserver
8 :BindAddress => '127.0.0.1',
10 :Logger => Logger.new($stderr),
12 [ Logger.new($stdout), WEBrick::AccessLog::COMBINED_LOG_FORMAT ]
15 server = WEBrick::HTTPServer.new(options)
17 WEBrick::HTTPServlet::CGIHandler,
18 "/var/www/cgi-bin/public-inbox.cgi")
19 ['INT', 'TERM'].each do |signal|
20 trap(signal) {exit!(0)}