Port directive


Purpose

The Port directive sets what port httpd listens to for clients.


Syntax

Port num

num is a number from 0 - 65536. Most ports below 1024, except port 80, are reserved by the system.

If you want to use a port below 1024 (such as 80, the standard HTTP port), and your ServerType is standalone, you will need to run httpd as root when starting it up.

Only one Port directive is allowed in the configuration file.


Default

If you do not specify a Port, httpd assumes:

Port 80


Examples

Port 8080

The server would listen to port 8080.

Port 84

The server would try to listen to port 84.


Return to Server Configuration File Overview

httpd@ncsa.uiuc.edu