Create  Edit  Diff  FrontPage  Index  Search  Changes  Login

Apache::Server

A class to wrap global and virtual server configuration and utility methods. Can be fetched via Apache::Request#server?.

Superclass

Object

Methods

access_confname
Returns the full location of the access.conf configuration file (if any). Not implemented
admin
Returns the email address of the server's administrator as set by the ServerAdmin directive.
defn_line_number
Returns the line number of the file that the configuration came from.
defn_name
Returns a description of where the configuration came from.
document_root
Returns the server's document root, as configured with the DocumentRoot directive.
error_fname
Return the name of the server's error log, either absolute or server-root relative.
gid
Returns the effective server gid.
hostname
Returns the (virtual) name of the server host.
is_virtual
virtual?
Returns true if the server is a virtual host.
limit_req_fields
Returns the limit on the number of request header fields.
limit_req_fieldsize
Returns the limit on the size of any request header field.
limit_req_line
Returns the limit on the number of characters that may be in an HTTP request line.
log_alert(fmt,*args)
log_crit(fmt,*args)
log_debug(fmt,*args)
log_emerg(fmt,*args)
log_error(fmt,*args)
log_info(fmt,*args)
log_notice(fmt,*args)
log_warn(fmt,*args)
Write a message to the server's log if the server's LogLevel is the specified level or above. The fmt and args are used the same way as the arguments to printf.
loglevel
Returns the log level of the server as an Integer between 1 and 8; 1 being the least verbose (emerg) and 8 being the most verbose (debug).
names
Returns an Array of server names for the host, starting with the canonical name, plus any aliases set with the ServerAlias directive.
path
Returns the legacy URL pathname for a host, for use with name-based virtual hosts. Set with the ServerPath directive.
port
Return the port number that the (virtual) server is listening on.
send_buffer_size
Returns the size of the TCP send buffer in bytes.
srm_confname
Returns the full location of the srm.conf configuration file (if any). Not implemented
keep_alive
keep_alive?
keep_alive_max
keep_alive_timeout
timeout
Returns the values corresponding to the Timeout, KeepAliveTimeout, MaxKeepAliveRequests, and the KeepAlive directives.
uid
Returns the effective server uid.
wild_names
Returns an Array of server names for the host that contain wildcards.
Last modified:2004/11/16 15:54:51
Keyword(s):
References:[ClassReferenceManual] [Apache::Request]