Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.17.166.43
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
lib64 /
ruby /
1.9.1 /
Delete
Unzip
Name
Size
Permission
Date
Action
cgi
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
date
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
digest
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
dl
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
drb
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
fiddle
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
irb
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
json
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
matrix
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
net
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
openssl
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
optparse
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
psych
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
racc
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
rake
[ DIR ]
drwxr-xr-x
2024-03-03 22:50
rbconfig
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
rdoc
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
rexml
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
rinda
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
ripper
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
rss
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
rubygems
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
shell
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
syck
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
test
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
uri
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
webrick
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
x86_64-linux
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
xmlrpc
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
yaml
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
English.rb
5.59
KB
-rw-r--r--
2009-10-02 10:45
abbrev.rb
2.57
KB
-rw-r--r--
2011-05-18 21:19
base64.rb
2.63
KB
-rw-r--r--
2009-10-02 10:45
benchmark.rb
18
KB
-rw-r--r--
2011-06-28 06:09
cgi.rb
9.3
KB
-rw-r--r--
2011-05-16 21:21
cmath.rb
7.22
KB
-rw-r--r--
2011-07-30 14:53
complex.rb
380
B
-rw-r--r--
2009-08-16 15:34
csv.rb
82.66
KB
-rw-r--r--
2011-07-21 21:40
date.rb
946
B
-rw-r--r--
2011-05-21 12:25
debug.rb
23.23
KB
-rw-r--r--
2011-06-28 11:45
delegate.rb
9.74
KB
-rw-r--r--
2011-07-27 19:56
digest.rb
2.24
KB
-rw-r--r--
2011-05-16 20:52
dl.rb
176
B
-rw-r--r--
2010-06-12 15:28
drb.rb
19
B
-rw-r--r--
2009-10-02 10:45
e2mmap.rb
3.8
KB
-rw-r--r--
2011-05-19 00:07
erb.rb
25.72
KB
-rw-r--r--
2012-12-13 05:24
expect.rb
1.33
KB
-rw-r--r--
2011-08-26 23:54
fiddle.rb
928
B
-rw-r--r--
2011-08-16 00:51
fileutils.rb
45.32
KB
-rw-r--r--
2012-02-25 08:11
find.rb
2.03
KB
-rw-r--r--
2011-05-18 21:19
forwardable.rb
7.64
KB
-rw-r--r--
2011-05-22 02:14
getoptlong.rb
15.38
KB
-rw-r--r--
2011-05-19 00:07
gserver.rb
8.83
KB
-rw-r--r--
2013-10-31 14:40
ipaddr.rb
24.92
KB
-rw-r--r--
2013-04-11 02:31
irb.rb
8.34
KB
-rw-r--r--
2011-05-19 00:07
json.rb
1.74
KB
-rw-r--r--
2011-08-30 02:25
kconv.rb
5.74
KB
-rw-r--r--
2010-12-07 11:47
logger.rb
20.85
KB
-rw-r--r--
2011-05-19 00:07
mathn.rb
6.52
KB
-rw-r--r--
2011-08-26 23:54
matrix.rb
47.65
KB
-rw-r--r--
2011-07-09 19:11
mkmf.rb
68.9
KB
-rw-r--r--
2014-02-06 05:20
monitor.rb
6.94
KB
-rw-r--r--
2011-06-17 22:33
mutex_m.rb
1.61
KB
-rw-r--r--
2011-05-19 00:07
observer.rb
5.69
KB
-rw-r--r--
2011-05-16 21:53
open-uri.rb
25.84
KB
-rw-r--r--
2014-02-24 03:43
open3.rb
20.64
KB
-rw-r--r--
2011-05-18 21:19
openssl.rb
547
B
-rw-r--r--
2011-07-25 06:38
optparse.rb
51.13
KB
-rw-r--r--
2014-02-14 04:52
ostruct.rb
6.49
KB
-rw-r--r--
2012-02-24 14:49
pathname.rb
14.21
KB
-rw-r--r--
2011-08-26 23:54
pp.rb
13.31
KB
-rw-r--r--
2010-08-01 14:09
prettyprint.rb
9.63
KB
-rw-r--r--
2011-08-02 15:25
prime.rb
13.98
KB
-rw-r--r--
2011-06-01 00:21
profile.rb
205
B
-rw-r--r--
2009-10-02 10:45
profiler.rb
1.59
KB
-rw-r--r--
2009-10-02 10:45
pstore.rb
15.81
KB
-rw-r--r--
2011-10-10 23:14
psych.rb
9.82
KB
-rw-r--r--
2012-08-07 20:50
rake.rb
2.02
KB
-rw-r--r--
2011-06-29 03:09
rational.rb
308
B
-rw-r--r--
2009-09-24 00:42
rdoc.rb
4.29
KB
-rw-r--r--
2013-02-06 08:00
resolv-replace.rb
1.74
KB
-rw-r--r--
2010-10-29 22:02
resolv.rb
59.91
KB
-rw-r--r--
2014-02-14 06:56
ripper.rb
91
B
-rw-r--r--
2009-10-02 10:45
rss.rb
2.84
KB
-rw-r--r--
2011-05-11 10:22
rubygems.rb
34.13
KB
-rw-r--r--
2013-12-22 04:38
scanf.rb
23.53
KB
-rw-r--r--
2011-05-20 12:22
securerandom.rb
8.46
KB
-rw-r--r--
2012-05-07 11:25
set.rb
29.91
KB
-rw-r--r--
2012-02-10 08:28
shell.rb
5.9
KB
-rw-r--r--
2011-05-19 00:07
shellwords.rb
3.88
KB
-rw-r--r--
2012-02-12 07:51
singleton.rb
4.02
KB
-rw-r--r--
2011-05-18 14:09
socket.rb
23.22
KB
-rw-r--r--
2014-01-30 12:04
syck.rb
13.91
KB
-rw-r--r--
2010-07-19 04:54
sync.rb
6.87
KB
-rw-r--r--
2011-06-29 03:09
tempfile.rb
10.42
KB
-rw-r--r--
2013-10-31 14:44
thread.rb
6.59
KB
-rw-r--r--
2014-02-14 03:48
thwait.rb
3.38
KB
-rw-r--r--
2011-06-29 03:09
time.rb
17.03
KB
-rw-r--r--
2013-10-31 14:06
timeout.rb
3.26
KB
-rw-r--r--
2013-04-02 04:09
tmpdir.rb
3.72
KB
-rw-r--r--
2011-05-18 21:19
tracer.rb
6.63
KB
-rw-r--r--
2011-06-29 13:19
tsort.rb
6.79
KB
-rw-r--r--
2009-03-06 04:23
ubygems.rb
268
B
-rw-r--r--
2009-10-02 10:45
un.rb
8.32
KB
-rw-r--r--
2011-05-19 00:07
uri.rb
3.07
KB
-rw-r--r--
2011-05-13 20:03
weakref.rb
2.29
KB
-rw-r--r--
2011-08-26 23:54
webrick.rb
6.8
KB
-rw-r--r--
2011-05-10 23:37
yaml.rb
2.58
KB
-rw-r--r--
2013-05-29 12:00
Save
Rename
## # = WEB server toolkit. # # WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, # a proxy server, and a virtual-host server. WEBrick features complete # logging of both server operations and HTTP access. WEBrick supports both # basic and digest authentication in addition to algorithms not in RFC 2617. # # A WEBrick servers can be composed of multiple WEBrick servers or servlets to # provide differing behavior on a per-host or per-path basis. WEBrick # includes servlets for handling CGI scripts, ERb pages, ruby blocks and # directory listings. # # WEBrick also includes tools for daemonizing a process and starting a process # at a higher privilege level and dropping permissions. # # == Starting an HTTP server # # To create a new WEBrick::HTTPServer that will listen to connections on port # 8000 and serve documents from the current user's public_html folder: # # require 'webrick' # # root = File.expand_path '~/public_html' # server = WEBrick::HTTPServer.new :Port => 8000, :DocumentRoot => root # # To run the server you will need to provide a suitable shutdown hook as # starting the server blocks the current thread: # # trap 'INT' do server.shutdown end # # server.start # # == Custom Behavior # # The easiest way to have a server perform custom operations is through # WEBrick::HTTPServer#mount_proc. The block given will be called with a # WEBrick::HTTPRequest with request info and a WEBrick::HTTPResponse which # must be filled in appropriately: # # server.mount_proc '/' do |req, res| # res.body = 'Hello, world!' # end # # Remember that <tt>server.mount_proc</tt> must <tt>server.start</tt>. # # == Servlets # # Advanced custom behavior can be obtained through mounting a subclass of # WEBrick::HTTPServlet::AbstractServlet. Servlets provide more modularity # when writing an HTTP server than mount_proc allows. Here is a simple # servlet: # # class Simple < WEBrick::HTTPServlet::AbstractServlet # def do_GET request, response # status, content_type, body = do_stuff_with request # # response.status = 200 # response['Content-Type'] = 'text/plain' # response.body = 'Hello, World!' # end # end # # To initialize the servlet you mount it on the server: # # server.mount '/simple', Simple # # See WEBrick::HTTPServlet::AbstractServlet for more details. # # == Virtual Hosts # # A server can act as a virtual host for multiple host names. After creating # the listening host, additional hosts that do not listen can be created and # attached as virtual hosts: # # server = WEBrick::HTTPServer.new # ... # # vhost = WEBrick::HTTPServer.new :ServerName => 'vhost.example', # :DoNotListen => true, # ... # vhost.mount '/', ... # # server.virtual_host vhost # # If no +:DocumentRoot+ is provided and no servlets or procs are mounted on the # main server it will return 404 for all URLs. # # == HTTPS # # To create an HTTPS server you only need to enable SSL and provide an SSL # certificate name: # # require 'webrick' # require 'webrick/https' # # cert_name = [ # %w[CN localhost], # ] # # server = WEBrick::HTTPServer.new(:Port => 8000, # :SSLEnable => true, # :SSLCertName => cert_name) # # This will start the server with a self-generated self-signed certificate. # The certificate will be changed every time the server is restarted. # # To create a server with a pre-determined key and certificate you can provide # them: # # require 'webrick' # require 'webrick/https' # require 'openssl' # # cert = OpenSSL::X509::Certificate.new File.read '/path/to/cert.pem' # pkey = OpenSSL::PKey::RSA.new File.read '/path/to/pkey.pem' # # server = WEBrick::HTTPServer.new(:Port => 8000, # :SSLEnable => true, # :SSLCertificate => cert, # :SSLPrivateKey => pkey) # # == Proxy Server # # WEBrick can act as a proxy server: # # require 'webrick' # require 'webrick/httpproxy' # # proxy = WEBrick::HTTPProxyServer.new :Port => 8000 # # trap 'INT' do proxy.shutdown end # # Proxies may modifier the content of the response through the # +:ProxyContentHandler+ callback which will be invoked with the request and # respone after the remote content has been fetched. # # == Basic and Digest authentication # # WEBrick provides both Basic and Digest authentication for regular and proxy # servers. See WEBrick::HTTPAuth, WEBrick::HTTPAuth::BasicAuth and # WEBrick::HTTPAuth::DigestAuth. # # == WEBrick as a Production Web Server # # WEBrick can be run as a production server for small loads. # # === Daemonizing # # To start a WEBrick server as a daemon simple run WEBrick::Daemon.start # before starting the server. # # === Dropping Permissions # # WEBrick can be started as one user to gain permission to bind to port 80 or # 443 for serving HTTP or HTTPS traffic then can drop these permissions for # regular operation. To listen on all interfaces for HTTP traffic: # # sockets = WEBrick::Utils.create_listeners nil, 80 # # Then drop privileges: # # WEBrick::Utils.su 'www' # # Then create a server that does not listen by default: # # server = WEBrick::HTTPServer.new :DoNotListen => true, # ... # # Then overwrite the listening sockets with the port 80 sockets: # # server.listeners.replace sockets # # === Logging # # WEBrick can separately log server operations and end-user access. For # server operations: # # log_file = File.open '/var/log/webrick.log', 'a+' # log = WEBrick::Log.new log_file # # For user access logging: # # access_log = [ # [log_file, WEBrick::AccessLog::COMBINED_LOG_FORMAT], # ] # # server = WEBrick::HTTPServer.new :Logger => log, :AccessLog => access_log # # See WEBrick::AccessLog for further log formats. # # === Log Rotation # # To rotate logs in WEBrick on a HUP signal (like syslogd can send), open the # log file in 'a+' mode (as above) and trap 'HUP' to reopen the log file: # # trap 'HUP' do log_file.reopen '/path/to/webrick.log', 'a+' # # == Copyright # # Author: IPR -- Internet Programming with Ruby -- writers # # Copyright (c) 2000 TAKAHASHI Masayoshi, GOTOU YUUZOU # Copyright (c) 2002 Internet Programming with Ruby writers. All rights # reserved. #-- # $IPR: webrick.rb,v 1.12 2002/10/01 17:16:31 gotoyuzo Exp $ module WEBrick end require 'webrick/compat.rb' require 'webrick/version.rb' require 'webrick/config.rb' require 'webrick/log.rb' require 'webrick/server.rb' require 'webrick/utils.rb' require 'webrick/accesslog' require 'webrick/htmlutils.rb' require 'webrick/httputils.rb' require 'webrick/cookie.rb' require 'webrick/httpversion.rb' require 'webrick/httpstatus.rb' require 'webrick/httprequest.rb' require 'webrick/httpresponse.rb' require 'webrick/httpserver.rb' require 'webrick/httpservlet.rb' require 'webrick/httpauth.rb'