Advertisement
hiro1357

webrick

Apr 27th, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. ruby -run -e httpd -- -p 8000 -b "0.0.0.0" "./"
  2. #ruby -e "require 'webrick'; s = WEBrick::HTTPServer.new(:BindAddress => '0.0.0.0', :Port => 8000, :DocumentRoot => './'); s.mount('*.cgi', WEBrick::HTTPServlet::CGIHandler, '*.cgi'); Signal.trap(:INT){s.shutdown};s.start"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement