Displaying 2 results from an estimated 2 matches for "getservernam".
Did you mean:
getservername
2006 Jan 16
2
Basic (newbie) Webrick / ssl config question
I have a simple Intranet app I want to make accessible via the
Internet for remote access by our employees.
I want to use ssl (https) connections and I''ve found enough messages
to imply Webrick as included in rails can do the job.
The message at
http://wrath.rubyonrails.org/pipermail/rails/2005-January/001993.html
even appears to tell me exactly how to do it by modifying
2010 Mar 05
1
WEBrick 500 error only with https
...:BindAddress => options[:ip],
:SSLEnable => true,
:SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
:SSLCertificate => options[:cert],
:SSLPrivateKey => options[:pkey],
:SSLCertName => [ [ "CN",
WEBrick::Utils::getservername ] ]
)
server.mount(''/'', DispatchServlet, options)
trap("INT") { server.shutdown }
server.start
end
end
puts "=> Rails application started on
https://#{OPTIONS[:ip]}:#{OPTIONS[:port]}"
puts "=> Ctrl-C to shutdown"
SSL...