Sha256: c5e426566b4b1b727dbcbf8fdedc49477780058cba314f00f620befd99ab7035
Contents?: true
Size: 376 Bytes
Versions: 28
Compression:
Stored size: 376 Bytes
Contents
#!/usr/bin/env ruby require 'webrick' require 'soap/property' docroot = "." port = 8808 if opt = SOAP::Property.loadproperty("samplehttpd.conf") docroot = opt["docroot"] port = Integer(opt["port"]) end s = WEBrick::HTTPServer.new( :BindAddress => "0.0.0.0", :Port => port, :DocumentRoot => docroot, :CGIPathEnv => ENV['PATH'] ) trap(:INT){ s.shutdown } s.start
Version data entries
28 entries across 7 versions & 2 rubygems