Name
ap_ get_server_port — get the port of the current server
Synopsis
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]
[6] Though what practical difference this makes is somewhat mysterious to us.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.