Apache WWW-server: Tuning

Next Previous Contents

## 13. Tuning

## 13.1 Listen on port

The TCP port the web server should listen for HTTP requests on. The standard port for HTTP is 80, so if you use another port you have to write that in the URL as well. For example, if you let your web server listen on port 8000, then the URL to your server would be `http://your.webserver.com:8000/`.

## 13.2 Pid file

The web server stores the PID of its main process in this file. You will probably not have to modify this.

## 13.3 Time out

How many seconds the web server will wait for a request to be sent after a client has connected to the server. If a client connects but doesn't send any request, it will be disconnected after this time, freeing the resources it occupies.

## 13.4 Host name lookups

Whether the web server should attempt to find out the host names of connecting clients. If this is disabled only the IP address of the client will be logged. If you enable it the host name will be logged instead, if it is possible to resolve the IP address to a name.

There are two disadvantages of enabling host name lookups. Every access results in network traffic to resolve the address, and the accessed page can't be returned until after the address resolving which will make the web server feel slow. It is better to let a log file analyser resolve the addresses when processing the log files.

Next Previous Contents