PHP 8.2.31
Preview: config.rb Size: 3.13 KB
//proc/thread-self/root/opt/alt/ruby18/lib64/ruby/1.8/webrick/config.rb

#
# config.rb -- Default configurations.
#
# Author: IPR -- Internet Programming with Ruby -- writers
# Copyright (c) 2000, 2001 TAKAHASHI Masayoshi, GOTOU Yuuzou
# Copyright (c) 2003 Internet Programming with Ruby writers. All rights
# reserved.
#
# $IPR: config.rb,v 1.52 2003/07/22 19:20:42 gotoyuzo Exp $

require 'webrick/version'
require 'webrick/httpversion'
require 'webrick/httputils'
require 'webrick/utils'
require 'webrick/log'

module WEBrick
  module Config
    LIBDIR = File::dirname(__FILE__)

    # for GenericServer
    General = {
      :ServerName     => Utils::getservername,
      :BindAddress    => nil,   # "0.0.0.0" or "::" or nil
      :Port           => nil,   # users MUST specifiy this!!
      :MaxClients     => 100,   # maximum number of the concurrent connections
      :ServerType     => nil,   # default: WEBrick::SimpleServer
      :Logger         => nil,   # default: WEBrick::Log.new
      :ServerSoftware => "WEBrick/#{WEBrick::VERSION} " +
                         "(Ruby/#{RUBY_VERSION}/#{RUBY_RELEASE_DATE})",
      :TempDir        => ENV['TMPDIR']||ENV['TMP']||ENV['TEMP']||'/tmp',
      :DoNotListen    => false,
      :StartCallback  => nil,
      :StopCallback   => nil,
      :AcceptCallback => nil,
    }

    # for HTTPServer, HTTPRequest, HTTPResponse ...
    HTTP = General.dup.update(
      :Port           => 80,
      :RequestTimeout => 30,
      :HTTPVersion    => HTTPVersion.new("1.1"),
      :AccessLog      => nil,
      :MimeTypes      => HTTPUtils::DefaultMimeTypes,
      :DirectoryIndex => ["index.html","index.htm","index.cgi","index.rhtml"],
      :DocumentRoot   => nil,
      :DocumentRootOptions => { :FancyIndexing => true },
      :RequestHandler => nil,
      :RequestCallback => nil,  # alias of :RequestHandler
      :ServerAlias    => nil,

      # for HTTPProxyServer
      :ProxyAuthProc  => nil,
      :ProxyContentHandler => nil,
      :ProxyVia       => true,
      :ProxyTimeout   => true,
      :ProxyURI       => nil,

      :CGIInterpreter => nil,
      :CGIPathEnv     => nil,

      # workaround: if Request-URIs contain 8bit chars,
      # they should be escaped before calling of URI::parse().
      :Escape8bitURI  => false
    )

    FileHandler = {
      :NondisclosureName => [".ht*", "*~"],
      :FancyIndexing     => false,
      :HandlerTable      => {},
      :HandlerCallback   => nil,
      :DirectoryCallback => nil,
      :FileCallback      => nil,
      :UserDir           => nil,  # e.g. "public_html"
      :AcceptableLanguages => []  # ["en", "ja", ... ]
    }

    BasicAuth = {
      :AutoReloadUserDB     => true,
    }

    DigestAuth = {
      :Algorithm            => 'MD5-sess', # or 'MD5' 
      :Domain               => nil,        # an array includes domain names.
      :Qop                  => [ 'auth' ], # 'auth' or 'auth-int' or both.
      :UseOpaque            => true,
      :UseNextNonce         => false,
      :CheckNc              => false,
      :UseAuthenticationInfoHeader => true,
      :AutoReloadUserDB     => true,
      :NonceExpirePeriod    => 30*60,
      :NonceExpireDelta     => 60,
      :InternetExplorerHack => true,
      :OperaHack            => true,
    }
  end
end

Directory Contents

Dirs: 2 × Files: 21

Name Size Perms Modified Actions
httpauth DIR
- drwxr-xr-x 2024-03-03 22:48:14
Edit Download
- drwxr-xr-x 2024-03-03 22:48:14
Edit Download
2.25 KB lrw-r--r-- 2011-06-23 09:44:05
Edit Download
6.92 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
436 B lrw-r--r-- 2007-02-12 23:01:19
Edit Download
3.13 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
3.03 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
584 B lrw-r--r-- 2007-02-12 23:01:19
Edit Download
1.31 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
7.46 KB lrw-r--r-- 2008-06-06 08:05:24
Edit Download
9.99 KB lrw-r--r-- 2010-11-22 07:22:01
Edit Download
7.96 KB lrw-r--r-- 2010-08-16 07:31:35
Edit Download
1.64 KB lrw-r--r-- 2010-12-20 16:55:16
Edit Download
5.63 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
669 B lrw-r--r-- 2007-02-12 23:01:19
Edit Download
3.51 KB lrw-r--r-- 2010-06-10 05:23:49
Edit Download
9.96 KB lrw-r--r-- 2010-01-10 10:30:06
Edit Download
1.12 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
2.03 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
5.28 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
4.22 KB lrw-r--r-- 2010-11-22 07:21:52
Edit Download
2.54 KB lrw-r--r-- 2012-06-06 05:20:08
Edit Download
351 B lrw-r--r-- 2007-02-12 23:01:19
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).