search for: start_webrick

Displaying 2 results from an estimated 2 matches for "start_webrick".

2006 Mar 05
5
lighttpd / WEBrick forum?
Is there a mail list or USENET group for lighttpd WEBrick questions. I posted a simple CGI question to this list last week and got one responce and that responce told me I was on the wrong list with Ruby based from / CGI questions. The code I posted looks correct but does not work giving a Routing Error. This makes me think something is wrong with the set up of WEBrick. I am only doing
2006 Mar 24
2
Basic Auth in WEBrick
...simple password protection around a rails application in development using WEBrick on a custom port. Just one account would be fine. I have done an extensive Google hunt for an example, but I all find are code chunks for starting WEBrick such as: realm = "Gnome realm" start_webrick {|server| htpasswd = HTTPAuth::Htpasswd.new(/tmp/gnome.htpasswd) authenticator = HTTPAuth::BasicAuth.new( :UserDb => htpasswd :Realm => realm ) server.mount_proc(/htpasswd_auth) {|req resp| authenticator.authenticate(req resp)...