summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/un.rb5
1 files changed, 3 insertions, 2 deletions
@@ -311,9 +311,10 @@ def httpd
[:Port, :MaxClients].each do |name|
opt = options[name] and (options[name] = Integer(opt)) rescue nil
end
- unless argv.empty?
- options[:DocumentRoot] = argv.shift
end
s = WEBrick::HTTPServer.new(options)
shut = proc {s.shutdown}
Signal.trap("TERM", shut)