WEBrick::Config
No documentation available for this module.
Constants
BasicAuth = {\n:AutoReloadUserDB => true,\n}
DigestAuth = {\n:Algorithm => 'MD5-sess', # or 'MD5'\n:Domain => nil, # an array includes domain names.\n:Qop => [ 'auth' ], # 'auth' or 'auth-int' or both.\n:UseOpaque => true,\n:UseNextNonce => false,\n:CheckNc => false,\n:UseAuthenticationInfoHeader => true,\n:AutoReloadUserDB => true,\n:NonceExpirePeriod => 30*60,\n:NonceExpireDelta => 60,\n:InternetExplorerHack => true,\n:OperaHack => true,\n}
FileHandler = {\n:NondisclosureName => [".ht*", "*~"],\n:FancyIndexing => false,\n:HandlerTable => {},\n:HandlerCallback => nil,\n:DirectoryCallback => nil,\n:FileCallback => nil,\n:UserDir => nil, # e.g. "public_html"\n:AcceptableLanguages => [] # ["en", "ja", ... ]\n}
General = {\n:ServerName => Utils::getservername,\n:BindAddress => nil, # "0.0.0.0" or "::" or nil\n:Port => nil, # users MUST specify this!!\n:MaxClients => 100, # maximum number of the concurrent connections\n:ServerType => nil, # default: WEBrick::SimpleServer\n:Logger => nil, # default: WEBrick::Log.new\n:ServerSoftware => "WEBrick/#{WEBrick::VERSION} " +\n"(Ruby/#{RUBY_VERSION}/#{RUBY_RELEASE_DATE})",\n:TempDir => ENV['TMPDIR']||ENV['TMP']||ENV['TEMP']||'/tmp',\n:DoNotListen => false,\n:StartCallback => nil,\n:StopCallback => nil,\n:AcceptCallback => nil,\n:DoNotReverseLookup => nil,\n:ShutdownSocketWithoutClose => false,\n}
HTTP = General.dup.update(\n:Port => 80,\n:RequestTimeout => 30,\n:HTTPVersion => HTTPVersion.new("1.1"),\n:AccessLog => nil,\n:MimeTypes => HTTPUtils::DefaultMimeTypes,\n:DirectoryIndex => ["index.html","index.htm","index.cgi","index.rhtml"],\n:DocumentRoot => nil,\n:DocumentRootOptions => { :FancyIndexing => true },\n:RequestCallback => nil,\n:ServerAlias => nil,\n:InputBufferSize => 65536, # input buffer size in reading request body\n:OutputBufferSize => 65536, # output buffer size in sending File or IO\n\n# for HTTPProxyServer\n:ProxyAuthProc => nil,\n:ProxyContentHandler => nil,\n:ProxyVia => true,\n:ProxyTimeout => true,\n:ProxyURI => nil,\n\n:CGIInterpreter => nil,\n:CGIPathEnv => nil,\n\n# workaround: if Request-URIs contain 8bit chars,\n# they should be escaped before calling of URI::parse().\n:Escape8bitURI => false\n)
LIBDIR = File::dirname(__FILE__)
SSL = {\n:ServerSoftware => "#{svrsoft} OpenSSL/#{osslv}",\n:SSLEnable => false,\n:SSLCertificate => nil,\n:SSLPrivateKey => nil,\n:SSLClientCA => nil,\n:SSLExtraChainCert => nil,\n:SSLCACertificateFile => nil,\n:SSLCACertificatePath => nil,\n:SSLCertificateStore => nil,\n:SSLTmpDhCallback => nil,\n:SSLVerifyClient => ::OpenSSL::SSL::VERIFY_NONE,\n:SSLVerifyDepth => nil,\n:SSLVerifyCallback => nil, # custom verification\n:SSLTimeout => nil,\n:SSLOptions => nil,\n:SSLStartImmediately => true,\n# Must specify if you use auto generated certificate.\n:SSLCertName => nil,\n:SSLCertComment => "Generated by Ruby/OpenSSL"\n}
Files
- lib/webrick/config.rb
- lib/webrick/https.rb
- lib/webrick/ssl.rb