User manual

Table Of Contents
54 Chapter 6 Working With Open-Source Applications
The optional third argument can be can be used to specify a port number under which
the HTTP service is to be registered, or the keyword “main”; in the latter case, the port
number of the “main server (outside any virtual hosts) is used. In the case of Mac OS X
Server, do not specify “main for the port, because all externally visible sites are virtual
hosts, and the main server is used only for status. If the port argument is omitted, port
80 is used.
If the directive is absent, no user site registration takes place. This directive is not
processed if mod_userdir is not loaded. The UserDir and DirectoryIndex directives must
precede the RegisterUserSite directive in the Apache config file.
Rendezvous details: This directive results in a call to the registration function, with a
string like Joe User” as the name, with “_http_tcp as the service type (indicating a web
server), and with a value like “path=/~juser/” as the TXT parameter (which, after
expansion by mod_userdir, indicates the user’s default website), and with the
appropriate port.
RegisterResource directive
Syntax: RegisterResource name path [port | main]
Default: No registration if directive is absent. Port defaults to 80.
Context: server config
Compatibility: Apache 1.3.x; Mac OS X and Mac OS X Server only
Module: mod_rendezvous_apple
The RegisterResource directive causes the registration of the specified resource path
under the specified name.
The optional third argument can be used to specify a port number, or the keyword
“main”; in the latter case, the port number of the main server (outside any virtual
hosts) is used. On Mac OS X Server, do not specify “main,” because all externally visible
sites are virtual hosts, and the main server is used only for status. If the third argument
is omitted, port 80 is used.
Rendezvous details: This directive results in a call to the registration function, with the
specified name, with “_http._tcp as the service type (indicating a web server), with
“path=/specifiedpath as the TXT parameter, and with the appropriate port.
LL2350.book Page 54 Friday, August 22, 2003 2:32 PM