The server records that Apache uses contain a ton of useful information. While modules do not generally use all of these attributes, some of them are fairly useful and important.
server_rec.next
Within the Apache webserver, many virtual-hosts can be run simultaneously. The servers are stored in a linked list within the server, and the next attribute returns the next server in the list.
server_rec.def_name
This string attribute contains the definition name of the server, as from the configuration file. In the case of the main server, this value is None
server_rec.defn_line_number
This integer attribute contains the line number of the VirtualHost directive for which the server was created.
server_rec.server_admin
This attribute contains the server admin string, as specified within the configuration file by the ServerAdmin directive.
server_rec.server_hostname
This attribute contains the server hostname string, as specified within the configuration file by the ServerName directive.
server_rec.port
This attribute contains the port number that the server is running on.
server_rec.is_virtual
Attribute specifying whether or not a given server is a virtual server or not (true or false)
server_rec.path
Attribute specifying the pathname, as given by the ServerPath directive within the configuration file.
server_rec.names
Returns a tuple containing the names as denoted by ServerAlias
server_rec.wild_names
Returns a tuple containing the wildcarded names as denoted by ServerAlias.
server_rec.server_uid
Returns the effective user id when calling the exec wrapper
server_rec.server_gid
Returns the effective group id when calling the exec wrapper.