[Top] [Prev] [Next] [Bottom]


[Contents] [Index]

httpd, echo, stats - HTTP server

httpd [ -c cachesize ] [ -D ]
echo  meth vers uri search 
stats meth vers uri search

Description

httpd

The httpd program (/dis/svc/httpd/httpd) is an HTTP daemon, serving version 1.0 of the HTTP protocol. It is usually executed in response to an incoming call on TCP port 80, the HTTP port (this port must be defined in the machine's services file)

The httpd program supports only the GET and HEAD methods of the HTTP protocol. The Content-type (default application/octet-stream) and Content-encoding (default binary) of a file are determined by looking for suffixes of the file name in /services/http/http.suff.

If the requested URI begins with /magic/, the httpd program loads the module associated with the remaining part of the URI.

Options
-c cachesize The -c flag is used to set the size of the daemon's cache. The default is a five megabyte cache.
-D If the -D flag is set, debugging information is written to the file /services/httpd/httpd.debug. By default, there is no debugging.

echo

The echo program (/dis/svc/httpd/echo.dis) is a trivial server that just returns the method, URI, any search, and the headers sent by the client. The source for echo is located in /appl/work/svc/httpd/echo.b.

stats

The stats program (/dis/svc/svc/httpd/stats.dis) is an example that queries the cache and returns information to the user about pages stored in the cache. The source for stats is located in /appl/work/svc/httpd/stats.b.

httpd.m

The file httpd.m (in /appl/work/svc/httpd/) defines constants and adts used by the httpd program. The magicpath constant defines the location for programs called using the URI /magic/ (i.e., /magic/<program> would result in httpd executing magicpath/<program>. The value of magicpath is /dis/svc/httpd/ (including the trailing slash).

cgi.m

The cgi module (/appl/work/svc/httpd/cgi.m) defines the interface for programs called using the URI /magic/.

Files
/services/httpd/httpd.debug Logfile for debugging information.
/services/httpd/httpd.log httpd logfile.
/services/httpd/httpd.rewrite File to redirect specific URI requests.
/services/httpd/httpd.suff File of recognizable suffixes and their content type.



[Top] [Prev] [Next] [Bottom]

infernosupport@lucent.com
Copyright © 1997, Lucent Technologies, Inc.. All rights reserved.