ap_ get_server_port — get the port of the current server
unsigned ap_ get_server_port(const request_rec *r)
If UseCanonicalName
is on, then returns the port
configured for the server that is handling r
. If
UseCanonicalName
is off, returns the port of the
connection if the request included a hostname; otherwise the
configured port.[6]