forsyth20121205-174063a80cc13 years agoHistory
115 lines · 2.3 KB · Text
RawDownload
.TH HTTPD 8.SH NAMEhttpd, echo, stats \- HTTP server.SH SYNOPSIS.B svc/httpd/httpd[.BI -a " addr"] [.BI -c " cachesize"] [.B -D].PP.BI svc/httpd/echo " meth vers uri search".PP.BI svc/httpd/stats " meth vers uri search".SH DESCRIPTION.I Httpdis a simple HTTP daemon, serving version 1.0 of the HTTP protocol.It listens for incoming calls on a given.I address(default:.BR tcp!*!80 ).It serves content rooted at.L /services/httpd/rootin its name space..PPThe.I httpdprogram supports only the.L GETand.L HEADmethods of the HTTP protocol. The.L Content-type(default.LR application/octet-stream )and.L Content-encoding(default.LR binary )of a file are determined by looking for suffixes of the file name in.BR /services/http/http.suff ..PPIf the requested URI begins with.BR /magic/ ,.I httpdloads the module associated with the remaining part of the URI.Take care to configure the name space sensibly.Simple servers.I echoand.I statsare provided (see below)..PP.I Httpdhas the following options:.TP.BI -a " address"Listen for calls on the given.IR address ,expressed using the syntax of.IR dial (2)..TP.BI -c " cachesize"Set the size of the daemon's cache to.I cachesizekilobytes. The default is a five megabyte cache..TP.B -DDebugging information is written to the file.BR /services/httpd/httpd.debug ..PP.I Echois a trivial server that just returns the method, URI, any search, and the headers sent by the client..PP.I Statsis an equally simple server that queries the cache and returns information to the user about pages stored in the cache..PPMore complex services can be written to.IR httpd 'sprivate interface.The file.B httpd.m(in.BR /appl/svc/httpd )defines constants and adts used by.IR httpd .The file.B cgi.mdefines themodule.L Cgiwhich is the interface for programs called using the URI.BR /magic/ ..SH FILES.TF "/services/httpd/httpd.rewrite  ".TP.B /services/httpd/rootRoot of the served web content..TP.B /services/httpd/httpd.debugLogfile for debugging information..TP.B /services/httpd/httpd.log.I httpdlogfile..TP.B /services/httpd/httpd.rewriteFile to redirect specific URI requests..TP.B /services/httpd/httpd.suffFile of recognizable suffixes and their content type..SH SOURCE.B /appl/svc/httpd