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
DocumentRootdirective. 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_virtualvirtual?-
Returns
trueif 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
LogLevelis the specified level or above. The fmt and args are used the same way as the arguments toprintf. loglevel-
Returns the log level of the server as an
Integerbetween 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
ServerAliasdirective. path-
Returns the legacy URL pathname for a host, for use with name-based
virtual hosts. Set with the
ServerPathdirective. 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_alivekeep_alive?keep_alive_maxkeep_alive_timeouttimeout-
Returns the values corresponding to the
Timeout,KeepAliveTimeout,MaxKeepAliveRequests, and theKeepAlivedirectives. uid- Returns the effective server uid.
wild_names- Returns an Array of server names for the host that contain wildcards.
Keyword(s):
References:[ClassReferenceManual] [Apache::Request]