Name
Port
Synopsis
Portport
Defaultport
: 80 Server config
When used in the main server configuration (i.e., outside any
<VirtualHost>
sections) and in the absence
of a BindAddress
or Listen
directive, the Port
directive sets the port number
on which Apache is to listen. This is for backward compatibility, and
you should really use BindAddress
or
Listen
.
When used in a <VirtualHost>
section, this
specifies the port that should be used when the server generates a
URL for itself (see also ServerName and UseCanonicalName). It does not set the port on which the
virtual host listens — that is done by the
<VirtualHost>
directive itself.
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.