Sha256: 2b1c00337badb0fdefa17ebcbb52d20e6e424c28d04dc1808c979bf76c71a012

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

#!/usr/bin/env ruby
# encoding: ASCII-8BIT

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) do
  s.shutdown
end
s.start

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
soap5r-2.0.3 sample/howto/scopesample/httpd.rb
soap5r-2.0.2 sample/howto/scopesample/httpd.rb
soap5r-2.0.1 sample/howto/scopesample/httpd.rb
soap5r-2.0.0 sample/howto/scopesample/httpd.rb
soap5r-2.0.0.20120130130121 sample/howto/scopesample/httpd.rb