httpd [ -h ] [ -l ] [ -L ] [ -v ] [ -V ] [ -S ] [ -t ] [ -T ]
httpd [ -X ] [ -R libexecdir
] [ -d serverroot
] [ -f config
] [ -C directive
] [ -c directive
] [ -D
parameter ]
Stand-alone daemon process, creating a pool of child processes to handle requests.
sudo apachectl start|stop|restart
The ugly way to stop it: send a TERM signal to the initial (parent) process. The PID of this process is written to a file as given in the configuration file.
Alternatively httpd may be invoked by the Internet daemon inetd(8) each time a connection to the HTTP service is made.
For details of the see the Apache manual httpd.apache.org.
-e lvl |
/etc/httpd/httpd.conf /etc/httpd/srm.conf /etc/httpd/access.conf /etc/httpd/mime.types /etc/httpd/magic /var/log/httpd/error_log /var/log/httpd/access_log /var/run/httpd.pid
htpasswd
generate passwords
.htaccess
contains pointer to the password file.
.htpasswd
is a frequent name.
<Directory (core.c) Container for directives affecting resources located in the specified directoriesAllowed in *.conf only outside Directory , Files or Location <Location (core.c) Container for directives affecting resources accessed through the specified URL pathsAllowed in *.conf only outside Directory , Files or Location <VirtualHost (core.c) Container to map directives to a particular virtual host, takes one or more host addressesAllowed in *.conf only outside Directory , Files or Location <Files (core.c) Container for directives affecting files matching specified patternsAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None <Limit (core.c) Container for authentication directives when accessed using specified HTTP methodsAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None <LimitExcept (core.c) Container for authentication directives to be applied when any HTTP method other than those specified is used to access the resourceAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None <IfModule (core.c) Container for directives based on existance of specified modulesAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None <IfDefine (core.c) Container for directives based on existance of command line definesAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None <DirectoryMatch (core.c) Container for directives affecting resources located in the specified directoriesAllowed in *.conf only outside Directory , Files or Location <LocationMatch (core.c) Container for directives affecting resources accessed through the specified URL pathsAllowed in *.conf only outside Directory , Files or Location <FilesMatch (core.c) Container for directives affecting files matching specified patternsAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None AuthType (core.c) An HTTP authorization type (e.g., "Basic")Allowed in *.conf only inside Directory , Files or Location and in .htaccess when AllowOverride includes AuthConfigAuthName (core.c) The authentication realm (e.g. "Members Only")Allowed in *.conf only inside Directory , Files or Location and in .htaccess when AllowOverride includes AuthConfigRequire (core.c) Selects which authenticated users or groups may access a protected spaceAllowed in *.conf only inside Directory , Files or Location and in .htaccess when AllowOverride includes AuthConfigSatisfy (core.c) access policy if both allow and require used ('all' or 'any')Allowed in *.conf only inside Directory , Files or Location and in .htaccess when AllowOverride includes AuthConfigAddDefaultCharset (core.c) The name of the default charset to add to any Content-Type without one or 'Off' to disableAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfoAcceptPathInfo (core.c) Set to on or off for PATH_INFO to be accepted by handlers, or default for the per-handler preferenceAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfoAccessFileName (core.c) Name(s) of per-directory config files (default: .htaccess )Allowed in *.conf only outside Directory , Files or Location DocumentRoot (core.c) Root directory of the document treeAllowed in *.conf only outside Directory , Files or Location ErrorDocument (core.c) Change responses for HTTP errorsAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfo Controls what groups of directives can be configured by per-directory config filesAllowed in *.conf only inside Directory , Files or Location Options (core.c) Set a number of attributes for a given directoryAllowed in *.conf anywhere and in .htaccess when AllowOverride includes OptionsDefaultType (core.c) the default MIME type for untypable filesAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfoFileETag (core.c) Specify components used to construct a file's ETagAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfoEnableMMAP (core.c) Controls whether memory-mapping may be used to read filesAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfoEnableSendfile (core.c) Controls whether sendfile may be used to transmit filesAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfoProtocol (core.c) Set the Protocol for httpd to use.Allowed in *.conf only outside Directory , Files or Location AcceptFilter (core.c) Set the Accept Filter to use for a protocolAllowed in *.conf only outside Directory , Files or Location Port (core.c) Port was replaced with Listen in Apache 2.0Allowed in *.conf only outside Directory , Files or Location HostnameLookups (core.c) "on" to enable, "off" to disable reverse DNS lookups, or "double" to enable double-reverse DNS lookupsAllowed in *.conf anywhereServerAdmin (core.c) The email address of the server administratorAllowed in *.conf only outside Directory , Files or Location ServerName (core.c) The hostname and port of the serverAllowed in *.conf only outside Directory , Files or Location ServerSignature (core.c) En-/disable server signature (on|off|email)Allowed in *.conf anywhere and in .htaccess when AllowOverride isn't None ServerRoot (core.c) Common directory of server-related files (logs, confs, etc.)Allowed in *.conf only outside Directory , Files or Location ErrorLog (core.c) The filename of the error logAllowed in *.conf only outside Directory , Files or Location ServerAlias (core.c) A name or names alternately used to access the serverAllowed in *.conf only outside Directory , Files or Location ServerPath (core.c) The pathname the server can be reached atAllowed in *.conf only outside Directory , Files or Location Timeout (core.c) Timeout duration (sec)Allowed in *.conf only outside Directory , Files or Location ContentDigest (core.c) whether or not to send a Content-MD5 header with each requestAllowed in *.conf anywhere and in .htaccess when AllowOverride includes OptionsUseCanonicalName (core.c) How to work out the ServerName : Port when constructing URLsAllowed in *.conf anywhereUseCanonicalPhysicalPort (core.c) Whether to use the physical Port when constructing URLsAllowed in *.conf anywhereInclude (core.c) Name of the config file to be includedAllowed in *.conf anywhereLogLevel (core.c) Level of verbosity in error loggingAllowed in *.conf only outside Directory , Files or Location NameVirtualHost (core.c) A numeric IP address:port, or the name of a hostAllowed in *.conf only outside Directory , Files or Location ServerTokens (core.c) Determine tokens displayed in the Server: header - Min(imal), OS or FullAllowed in *.conf only outside Directory , Files or Location LimitRequestLine (core.c) Limit on maximum size of an HTTP request lineAllowed in *.conf only outside Directory , Files or Location LimitRequestFieldsize (core.c) Limit on maximum size of an HTTP request header fieldAllowed in *.conf only outside Directory , Files or Location LimitRequestFields (core.c) Limit (0 = unlimited) on max number of header fields in a request messageAllowed in *.conf only outside Directory , Files or Location LimitRequestBody (core.c) Limit (in bytes) on maximum size of request message bodyAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None LimitXMLRequestBody (core.c) Limit (in bytes) on maximum size of an XML-based request bodyAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None MaxRanges (core.c) Maximum number of Ranges in a request before returning the entire resource, or 0 for unlimitedAllowed in *.conf anywhereRLimitCPU (core.c) Soft/hard limits for max CPU usage in secondsAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None RLimitMEM (core.c) Soft/hard limits for max memory usage per processAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None RLimitNPROC (core.c) soft/hard limits for max number of processes per uidAllowed in *.conf anywhere and in .htaccess when AllowOverride isn't None LimitInternalRecursion (core.c) maximum recursion depth of internal redirects and subrequestsAllowed in *.conf only outside Directory , Files or Location ForceType (core.c) a mime type that overrides other configured typeAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfoSetHandler (core.c) a handler name that overrides any other configured handlerAllowed in *.conf anywhere and in .htaccess when AllowOverride includes FileInfoSetOutputFilter (core.c) filter (or ; delimited list of filters) to be run on the request contentAllowed in *.conf anywhere and in .htaccess
when AllowOverride includes FileInfoSetInputFilter (core.c) filter (or ; delimited list of filters) to be run on the request bodyAllowed in *.conf anywhere and in .htaccess
when AllowOverride includes FileInfoAddOutputFilterByType (core.c) output filter name followed by one or more content-typesAllowed in *.conf anywhere and in .htaccess
when AllowOverride includes FileInfoAllowEncodedSlashes (core.c) Allow URLs containing '/' encoded as '%2F'Allowed in *.conf only outside Directory , Files or Location PidFile (core.c) A file for logging the server process IDAllowed in *.conf only outside Directory , Files or Location ScoreBoardFile (core.c) A file for Apache to maintain runtime process management informationAllowed in *.conf only outside Directory , Files or Location LockFile (core.c) The lockfile used when Apache needs to lock the accept() callAllowed in *.conf only outside Directory , Files or Location MaxRequestsPerChild (core.c) Maximum number of requests a particular child serves before dying.Allowed in *.conf only outside Directory , Files or Location CoreDumpDirectory (core.c) The location of the directory Apache changes to before dumping coreAllowed in *.conf only outside Directory , Files or Location AcceptMutex (core.c) Valid accept mutexes for this platform and MPM are: default, flock, fcntl, sysvsem, posixsem, pthread.Allowed in *.conf only outside Directory , Files or Location MaxMemFree (core.c) Maximum number of 1k blocks a particular childs allocator may hold.Allowed in *.conf only outside Directory , Files or Location ThreadStackSize (core.c) Size in bytes of stack used by threads handling client connectionsAllowed in *.conf only outside Directory , Files or Location TraceEnable (core.c) 'on' (default), 'off' or 'extended' to trace request body contentAllowed in *.conf only outside Directory , Files or Location Suexec (core.c) Enable or disable suEXEC supportAllowed in *.conf only outside Directory , Files or Location CustomLog (mod_log_config.c) a file name, a custom log format string or format name, and an optional "env=" clause (see docs)Allowed in *.conf only outside Directory , Files or Location TransferLog (mod_log_config.c) the filename of the access logAllowed in *.conf only outside Directory , Files or Location LogFormat (mod_log_config.c) a log format string (see docs) and an optional format nameAllowed in *.conf only outside Directory , Files or Location CookieLog (mod_log_config.c) the filename of the cookie logAllowed in *.conf only outside Directory , Files or Location BufferedLogs (mod_log_config.c) Enable Buffered Logging (experimental)Allowed in *.conf only outside Directory , Files or Location <IfVersion (mod_version.c) a comparison operator, a version (and a delimiter)Allowed in *.conf anywhere [no per-dir config] and in .htaccess
when AllowOverride isn't None User (worker.c) Effective user id for this serverAllowed in *.conf only outside Directory , Files or Location Group (worker.c) Effective group id for this serverAllowed in *.conf only outside Directory , Files or Location ChrootDir (worker.c) The directory to chroot(2) intoAllowed in *.conf only outside Directory , Files or Location ListenBacklog (worker.c) Maximum length of the queue of pending connections, as used by listen(2)Allowed in *.conf only outside Directory , Files or Location Listen (worker.c) A port number or a numeric IP address and a port number, and an optional protocolAllowed in *.conf only outside Directory , Files or Location SendBufferSize (worker.c) Send buffer size in bytesAllowed in *.conf only outside Directory , Files or Location ReceiveBufferSize (worker.c) Receive buffer size in bytesAllowed in *.conf only outside Directory , Files or Location StartServers (worker.c) Number of child processes launched at server startupAllowed in *.conf only outside Directory , Files or Location MinSpareThreads (worker.c) Minimum number of idle threads, to handle request spikesAllowed in *.conf only outside Directory , Files or Location MaxSpareThreads (worker.c) Maximum number of idle threadsAllowed in *.conf only outside Directory , Files or Location MaxClients (worker.c) Maximum number of threads alive at the same timeAllowed in *.conf only outside Directory , Files or Location ThreadsPerChild (worker.c) Number of threads each child createsAllowed in *.conf only outside Directory , Files or Location ServerLimit (worker.c) Maximum number of child processes for this run of ApacheAllowed in *.conf only outside Directory , Files or Location ThreadLimit (worker.c) Maximum number of worker threads per child process for this run of Apache - Upper limit for ThreadsPerChildAllowed in *.conf only outside Directory , Files or Location GracefulShutdownTimeout (worker.c) Maximum time in seconds to wait for child processes to complete transactions during shutdownAllowed in *.conf only outside Directory , Files or Location KeepAliveTimeout (http_core.c) Keep-Alive timeout duration (sec)Allowed in *.conf only outside Directory , Files or Location MaxKeepAliveRequests (http_core.c) Maximum number of Keep-Alive requests per connection, or 0 for infiniteAllowed in *.conf only outside Directory , Files or Location KeepAlive (http_core.c) Whether persistent connections should be On or OffAllowed in *.conf only outside Directory , Files or Location LoadModule (mod_so.c) a module name and the name of a shared object file to load it fromAllowed in *.conf only outside Directory , Files or Location LoadFile (mod_so.c) shared object file or library to load into the server at runtimeAllowed in *.conf only outside Directory , Files or Location |
starting apache under Mac OS X
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist