archive-com.com » COM » C » CAPITALSAFETY.COM

Total: 175

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • mpm_common - Apache HTTP Server
    processes that will be created to serve requests Syntax MaxClients number Default See usage for details Context server config Status MPM Module beos prefork worker The MaxClients directive sets the limit on the number of simultaneous requests that will be served Any connection attempts over the MaxClients limit will normally be queued up to a number based on the ListenBacklog directive Once a child process is freed at the end of a different request the connection will then be serviced For non threaded servers i e prefork MaxClients translates into the maximum number of child processes that will be launched to serve requests The default value is 256 to increase it you must also raise ServerLimit For threaded and hybrid servers e g beos or worker MaxClients restricts the total number of threads that will be available to serve clients The default value for beos is 50 For hybrid MPMs the default value is 16 ServerLimit multiplied by the value of 25 ThreadsPerChild Therefore to increase MaxClients to a value that requires more than 16 processes you must also raise ServerLimit MaxMemFree Directive Description Maximum amount of memory that the main allocator is allowed to hold without calling free Syntax MaxMemFree KBytes Default MaxMemFree 0 Context server config Status MPM Module beos mpm netware prefork worker mpm winnt The MaxMemFree directive sets the maximum number of free Kbytes that the main allocator is allowed to hold without calling free When not set or when set to zero the threshold will be set to unlimited MaxRequestsPerChild Directive Description Limit on the number of requests that an individual child server will handle during its life Syntax MaxRequestsPerChild number Default MaxRequestsPerChild 10000 Context server config Status MPM Module mpm netware mpm winnt mpmt os2 prefork worker The MaxRequestsPerChild directive sets the limit on the number of requests that an individual child server process will handle After MaxRequestsPerChild requests the child process will die If MaxRequestsPerChild is 0 then the process will never expire Different default values The default value for mpm netware and mpm winnt is 0 Setting MaxRequestsPerChild to a non zero limit has two beneficial effects it limits the amount of memory that process can consume by accidental memory leakage by giving processes a finite lifetime it helps reduce the number of processes when the server load reduces Note For KeepAlive requests only the first request is counted towards this limit In effect it changes the behavior to limit the number of connections per child MaxSpareThreads Directive Description Maximum number of idle threads Syntax MaxSpareThreads number Default See usage for details Context server config Status MPM Module beos mpm netware mpmt os2 worker Maximum number of idle threads Different MPMs deal with this directive differently For worker the default is MaxSpareThreads 250 These MPMs deal with idle threads on a server wide basis If there are too many idle threads in the server then child processes are killed until the number of idle threads is less than this number For mpm netware the default is MaxSpareThreads 100 Since this MPM runs a single process the spare thread count is also server wide beos and mpmt os2 work similar to mpm netware The default for beos is MaxSpareThreads 50 For mpmt os2 the default value is 10 Restrictions The range of the MaxSpareThreads value is restricted Apache will correct the given value automatically according to the following rules mpm netware wants the value to be greater than MinSpareThreads For worker the value must be greater or equal than the sum of MinSpareThreads and ThreadsPerChild See also MinSpareThreads StartServers MinSpareThreads Directive Description Minimum number of idle threads available to handle request spikes Syntax MinSpareThreads number Default See usage for details Context server config Status MPM Module beos mpm netware mpmt os2 worker Minimum number of idle threads to handle request spikes Different MPMs deal with this directive differently worker uses a default of MinSpareThreads 75 and deal with idle threads on a server wide basis If there aren t enough idle threads in the server then child processes are created until the number of idle threads is greater than number mpm netware uses a default of MinSpareThreads 10 and since it is a single process MPM tracks this on a server wide bases beos and mpmt os2 work similar to mpm netware The default for beos is MinSpareThreads 1 For mpmt os2 the default value is 5 See also MaxSpareThreads StartServers PidFile Directive Description File where the server records the process ID of the daemon Syntax PidFile filename Default PidFile logs httpd pid Context server config Status MPM Module beos mpm winnt mpmt os2 prefork worker The PidFile directive sets the file to which the server records the process id of the daemon If the filename is not absolute then it is assumed to be relative to the ServerRoot Example PidFile var run apache pid It is often useful to be able to send the server a signal so that it closes and then re opens its ErrorLog and TransferLog and re reads its configuration files This is done by sending a SIGHUP kill 1 signal to the process id listed in the PidFile The PidFile is subject to the same warnings about log file placement and security Note As of Apache 2 it is recommended to use only the apachectl script for re starting or stopping the server ReceiveBufferSize Directive Description TCP receive buffer size Syntax ReceiveBufferSize bytes Default ReceiveBufferSize 0 Context server config Status MPM Module beos mpm netware mpm winnt mpmt os2 prefork worker The server will set the TCP receive buffer size to the number of bytes specified If set to the value of 0 the server will use the OS default ScoreBoardFile Directive Description Location of the file used to store coordination data for the child processes Syntax ScoreBoardFile file path Default ScoreBoardFile logs apache status Context server config Status MPM Module beos mpm winnt prefork worker Apache uses a scoreboard to communicate between its parent and child

    Original URL path: http://bc.capitalsafety.com/manual/mod/mpm_common.html (2016-02-16)
    Open archived version from archive


  • Binding - Apache HTTP Server
    on The server will respond to requests from any of the listed addresses and ports For example to make the server accept connections on both port 80 and port 8000 use Listen 80 Listen 8000 To make the server accept connections on two specified interfaces and port numbers use Listen 192 170 2 1 80 Listen 192 170 2 5 8000 IPv6 addresses must be surrounded in square brackets as in the following example Listen 2001 db8 a00 20ff fea7 ccea 80 Special IPv6 Considerations A growing number of platforms implement IPv6 and APR supports IPv6 on most of these platforms allowing Apache to allocate IPv6 sockets and handle requests which were sent over IPv6 One complicating factor for Apache administrators is whether or not an IPv6 socket can handle both IPv4 connections and IPv6 connections Handling IPv4 connections with an IPv6 socket uses IPv4 mapped IPv6 addresses which are allowed by default on most platforms but are disallowed by default on FreeBSD NetBSD and OpenBSD in order to match the system wide policy on those platforms But even on systems where it is disallowed by default a special configure parameter can change this behavior for Apache On the other hand on some platforms such as Linux and Tru64 the only way to handle both IPv6 and IPv4 is to use mapped addresses If you want Apache to handle IPv4 and IPv6 connections with a minimum of sockets which requires using IPv4 mapped IPv6 addresses specify the enable v4 mapped configure option enable v4 mapped is the default on all platforms but FreeBSD NetBSD and OpenBSD so this is probably how your Apache was built If you want Apache to handle IPv4 connections only regardless of what your platform and APR will support specify an IPv4 address on all Listen

    Original URL path: http://bc.capitalsafety.com/manual/bind.html (2016-02-16)
    Open archived version from archive

  • Overview of new features in Apache 2.2 - Apache HTTP Server
    2GB on modern 32 bit Unix systems Support for handling 2GB request bodies has also been added Event MPM The event MPM uses a seperate thread to handle Keep Alive requests and accepting connections Keep Alive requests have traditionally required httpd to dedicate a worker to handle it This dedicated worker could not be used again until the Keep Alive timeout was reached SQL Database Support mod dbd together with the apr dbd framework brings direct SQL support to modules that need it Supports connection pooling in threaded MPMs Windows Users please note that this is not yet included in the standard windows build If you try to use it on the Windows platform please let us know how you get on Module Enhancements Authn Authz Modules in the aaa directory have been renamed and offer better support for digest authentication For example mod auth is now split into mod auth basic and mod authn file mod auth dbm is now called mod authn dbm mod access has been renamed mod authz host There is also a new mod authn alias module for simplifying certain authentication configurations mod authnz ldap This module is a port of the 2 0 mod auth ldap module to the 2 2 Authn Authz framework New features include using LDAP attribute values and complicated search filters in the Require directive mod authz owner A new module that authorizes access to files based on the owner of the file on the file system mod version A new module that allows configuration blocks to be enabled based on the version number of the running server mod info Added a new config argument which will show the configuration directives as parsed by Apache including their file name and line number The module also shows the order of all request hooks and additional build information similar to httpd V mod ssl Added a support for RFC 2817 which allows connections to upgrade from clear text to TLS encryption mod imagemap mod imap has been renamed to mod imagemap to avoid user confusion Program Enhancements httpd A new command line option M has been added that lists all modules that are loaded based on the current configuration Unlike the l option this list includes DSOs loaded via mod so httxt2dbm A new program used to generate dbm files from text input for use in RewriteMap with the dbm map type Module Developer Changes APR 1 0 API Apache 2 2 uses the APR 1 0 API All deprecated functions and symbols have been removed from APR and APR Util For details see the APR Website Authn Authz The bundled authentication and authorization modules have been renamed along the following lines mod auth Modules that implement an HTTP authentication mechanism mod authn Modules that provide a backend authentication provider mod authz Modules that implement authorization or access mod authnz Module that implements both authentication authorization There is a new authentication backend provider scheme which greatly eases the construction of new authentication

    Original URL path: http://bc.capitalsafety.com/manual/new_features_2_2.html (2016-02-16)
    Open archived version from archive

  • Overview of new features in Apache 2.0 - Apache HTTP Server
    been added that provide additional module capabilities without patching the core Apache server IPv6 Support On systems where IPv6 is supported by the underlying Apache Portable Runtime library Apache gets IPv6 listening sockets by default Additionally the Listen NameVirtualHost and VirtualHost directives support IPv6 numeric address strings e g Listen 2001 db8 1 8080 Filtering Apache modules may now be written as filters which act on the stream of content as it is delivered to or from the server This allows for example the output of CGI scripts to be parsed for Server Side Include directives using the INCLUDES filter in mod include The module mod ext filter allows external programs to act as filters in much the same way that CGI programs can act as handlers Multilanguage Error Responses Error response messages to the browser are now provided in several languages using SSI documents They may be customized by the administrator to achieve a consistent look and feel Simplified configuration Many confusing directives have been simplified The often confusing Port and BindAddress directives are gone only the Listen directive is used for IP address binding the ServerName directive specifies the server name and port number only for redirection and vhost recognition Native Windows NT Unicode Support Apache 2 0 on Windows NT now uses utf 8 for all filename encodings These directly translate to the underlying Unicode file system providing multilanguage support for all Windows NT based installations including Windows 2000 and Windows XP This support does not extend to Windows 95 98 or ME which continue to use the machine s local codepage for filesystem access Regular Expression Library Updated Apache 2 0 includes the Perl Compatible Regular Expression Library PCRE All regular expression evaluation now uses the more powerful Perl 5 syntax Module Enhancements mod ssl New module in Apache 2 0 This module is an interface to the SSL TLS encryption protocols provided by OpenSSL mod dav New module in Apache 2 0 This module implements the HTTP Distributed Authoring and Versioning DAV specification for posting and maintaining web content mod deflate New module in Apache 2 0 This module allows supporting browsers to request that content be compressed before delivery saving network bandwidth mod auth ldap New module in Apache 2 0 41 This module allows an LDAP database to be used to store credentials for HTTP Basic Authentication A companion module mod ldap provides connection pooling and results caching mod auth digest Includes additional support for session caching across processes using shared memory mod charset lite New module in Apache 2 0 This experimental module allows for character set translation or recoding mod file cache New module in Apache 2 0 This module includes the functionality of mod mmap static in Apache 1 3 plus adds further caching abilities mod headers This module is much more flexible in Apache 2 0 It can now modify request headers used by mod proxy and it can conditionally set response headers mod proxy The proxy module has

    Original URL path: http://bc.capitalsafety.com/manual/new_features_2_0.html (2016-02-16)
    Open archived version from archive

  • Upgrading to 2.2 from 2.0 - Apache HTTP Server
    will be to account for changes in module names in particular for the authentication and authorization modules Some details of changes mod imap has been renamed to mod imagemap mod auth has been split up into mod auth basic mod authn file mod authz user and mod authz groupfile mod access has been renamed to mod authz host mod auth ldap has been renamed to mod authnz ldap Upgraded to require the APR 1 0 API Updated bundled PCRE version to 5 0 Run Time Configuration Changes Your existing version 2 0 config files and startup scripts can usually be used unchanged in version 2 2 Some small adjustments may be necessary for particular configurations as discussed below In addition if you dynamically load the standard modules using the LoadModule directive then you will need to account for the module name changes mentioned above If you choose to use the new default configuration file for version 2 2 you will find that it has been greatly simplified by removing all but the most essential configuration settings A set of example configuration settings for more advanced features is present in the conf extra directory of the installed server Default configuration files are installed in the conf original directory Some runtime configuration changes that you may notice The apachectl option startssl is no longer available To enable SSL support you should edit httpd conf to include the relevant mod ssl directives and then use apachectl start to start the server An example configuration to activate mod ssl has been included in conf extra httpd ssl conf The default setting of UseCanonicalName is now Off If you did not have this directive in your config file you can add UseCanonicalName On to retain the old behavior The module mod userdir will no longer

    Original URL path: http://bc.capitalsafety.com/manual/upgrading.html (2016-02-16)
    Open archived version from archive

  • The Apache License, Version 2.0 - Apache HTTP Server
    Subject to the terms and conditions of this License each Contributor hereby grants to You a perpetual worldwide non exclusive no charge royalty free irrevocable except as stated in this section patent license to make have made use offer to sell sell import and otherwise transfer the Work where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution s alone or by combination of their Contribution s with the Work to which such Contribution s was submitted If You institute patent litigation against any entity including a cross claim or counterclaim in a lawsuit alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed Redistribution You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium with or without modifications and in Source or Object form provided that You meet the following conditions You must give any other recipients of the Work or Derivative Works a copy of this License and You must cause any modified files to carry prominent notices stating that You changed the files and You must retain in the Source form of any Derivative Works that You distribute all copyright patent trademark and attribution notices from the Source form of the Work excluding those notices that do not pertain to any part of the Derivative Works and If the Work includes a NOTICE text file as part of its distribution then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file excluding those notices that do not pertain to any part of the Derivative Works in at least one of the following places within a NOTICE text file distributed as part of the Derivative Works within the Source form or documentation if provided along with the Derivative Works or within a display generated by the Derivative Works if and wherever such third party notices normally appear The contents of the NOTICE file are for informational purposes only and do not modify the License You may add Your own attribution notices within Derivative Works that You distribute alongside or as an addendum to the NOTICE text from the Work provided that such additional attribution notices cannot be construed as modifying the License You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use reproduction or distribution of Your modifications or for any such Derivative Works as a whole provided Your use reproduction and distribution of the Work otherwise complies with the conditions stated in this License Submission of Contributions Unless You explicitly state otherwise any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License without any additional

    Original URL path: http://bc.capitalsafety.com/manual/license.html (2016-02-16)
    Open archived version from archive

  • Compiling and Installing - Apache HTTP Server
    downloaded from the Apache HTTP Server download site which lists several mirrors Most users of Apache HTTPd on unix like systems will be better off downloading and compiling a source version The build process described below is easy and it allows you to customize your server to suit your needs In addition binary releases are often not up to date with the latest source releases If you do download a binary follow the instructions in the INSTALL bindist file inside the distribution After downloading it is important to verify that you have a complete and unmodified version of the Apache HTTP Server This can be accomplished by testing the downloaded tarball against the PGP signature Details on how to do this are available on the download page and an extended example is available describing the use of PGP Extract Extracting the source from the Apache HTTPd tarball is a simple matter of uncompressing and then untarring gzip d httpd NN tar gz tar xvf httpd NN tar This will create a new directory under the current directory containing the source code for the distribution You should cd into that directory before proceeding with compiling the server Configuring the source tree The next step is to configure the Apache HTTPd source tree for your particular platform and personal requirements This is done using the script configure included in the root directory of the distribution Developers downloading an unreleased version of the Apache HTTPd source tree will need to have autoconf and libtool installed and will need to run buildconf before proceeding with the next steps This is not necessary for official releases To configure the source tree using all the default options simply type configure To change the default options configure accepts a variety of variables and command line options The most important option is the location prefix where the Apache HTTP Server is to be installed later because Apache HTTPd has to be configured for this location to work correctly More fine tuned control of the location of files is possible with additional configure options Also at this point you can specify which features you want included in Apache HTTPd by enabling and disabling modules The Apache HTTP Server comes with a Base set of modules included by default Other modules are enabled using the enable module option where module is the name of the module with the mod string removed and with any underscore converted to a dash You can also choose to compile modules as shared objects DSOs which can be loaded or unloaded at runtime by using the option enable module shared Similarly you can disable Base modules with the disable module option Be careful when using these options since configure cannot warn you if the module you specify does not exist it will simply ignore the option In addition it is sometimes necessary to provide the configure script with extra information about the location of your compiler libraries or header files This is done by passing

    Original URL path: http://bc.capitalsafety.com/manual/install.html (2016-02-16)
    Open archived version from archive

  • Stopping and Restarting - Apache HTTP Server
    each child dies off the parent replaces it with a child from the new generation of the configuration which begins serving new requests immediately This code is designed to always respect the process control directive of the MPMs so the number of processes and threads available to serve clients will be maintained at the appropriate values throughout the restart process Furthermore it respects StartServers in the following manner if after one second at least StartServers new children have not been created then create enough to pick up the slack Hence the code tries to maintain both the number of children appropriate for the current load on the server and respect your wishes with the StartServers parameter Users of mod status will notice that the server statistics are not set to zero when a USR1 is sent The code was written to both minimize the time in which the server is unable to serve new requests they will be queued up by the operating system so they re not lost in any event and to respect your tuning parameters In order to do this it has to keep the scoreboard used to keep track of all children across generations The status module will also use a G to indicate those children which are still serving requests started before the graceful restart was given At present there is no way for a log rotation script using USR1 to know for certain that all children writing the pre restart log have finished We suggest that you use a suitable delay after sending the USR1 signal before you do anything with the old log For example if most of your hits take less than 10 minutes to complete for users on low bandwidth links then you could wait 15 minutes before doing anything with the old log If your configuration file has errors in it when you issue a restart then your parent will not restart it will exit with an error In the case of graceful restarts it will also leave children running when it exits These are the children which are gracefully exiting by handling their last request This will cause problems if you attempt to restart the server it will not be able to bind to its listening ports Before doing a restart you can check the syntax of the configuration files with the t command line argument see httpd This still will not guarantee that the server will restart correctly To check the semantics of the configuration files as well as the syntax you can try starting httpd as a non root user If there are no errors it will attempt to open its sockets and logs and fail because it s not root or because the currently running httpd already has those ports bound If it fails for any other reason then it s probably a config file error and the error should be fixed before issuing the graceful restart Restart Now Signal HUP apachectl k restart Sending the

    Original URL path: http://bc.capitalsafety.com/manual/stopping.html (2016-02-16)
    Open archived version from archive



  •