Apache 1.3 API Documentation

Routine ap_add_version_component

Definition:

void ap_add_version_component(const char *component);
     

Usage example:

/*
 * Called during modules-init phase
 */
ap_add_version_component("MyMod/1.0");
     

This routine adds the specified component identification to the string used as the value of the Server: response header field. It may only be called during the module init phase, and the value must either be a valid component version string (i.e., "component-name/n.n") or a parenthesis-enclosed comment (e.g., "(comment)").

Whether this additional server identification information is actually included in the response header field depends upon the setting of the ServerTokens configuration directive (q.v.).

See also:
ap_get_server_built, ap_get_server_name, ap_get_server_version

Previous: ap_add_per_url_conf Next: ap_allow_options

Table of Contents (Routines, Structures, Data Cells, Constants)