Definition:
char *ap_get_server_name(const request_rec *r);
Usage example:
char *string;
string = ap_get_server_name();
Returns the hostname of the server running Apache.
There are two options regarding what the "name" of a server is. The "canonical" name as defined by ServerName and Port, or the "client's name" as supplied by a possible Host: header or full URI.
Previous: ap_get_server_built
Next: ap_get_server_port
Table of Contents
(Routines,
Structures,
Data Cells,
Constants)