BindAddress Directive

Top - Docs - General - Server - Resource - Access - FAQ - Tutorials

Purpose

This is the second method for providing virtual host support. This allows for greater flexibility in configuration specific to each host, but is also more wasteful of resources. This method works by telling the server to only listen to a single address. This means that you need a separate copy of the server running for each virtual host address.


Syntax

BindAddress servername

Where servername is a DNS name that maps to a single IP address, or an IP address.


Virtual Host

This directive is incompatible with VirtualHost configuration. You cannot run both a BindAddress server and a VirtualHost server on the same machine.


Default

The Default is INADDR_ANY, which is listen to all addresses.


Examples

BindAddress 127.0.0.1

This would cause the server to only respond to connects to localhost.

BindAddress *

This would cause the server to respond to connects to any address. This is the default.


[Back] Return to Configuration File Overview
NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / 10-02-95