Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 182

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 181
182 Chapter 15. Apache
15.3.14. MaxClients
MaxClients sets a limit on the total number of server processes, or simultaneously connected clients,
that can run at one time. You should keep MaxClients at a high number (your server’s default is set
to 150), because no one else will be allowed to connect once that number of simultaneously connected
clients is reached. You can not set MaxClients to higher than 256 without recompiling Apache. The
main reason for having MaxClients is to keep a runaway Web server from crashing your operating
system.
15.3.15. MaxRequestsPerChild
MaxRequestsPerChild sets the total number of requests each child server process serves before
the child dies. The main reason for setting MaxRequestsPerChild is to avoid long-lived process
induced memory leaks. The default MaxRequestsPerChild for your server is 1000.
15.3.16. Listen
The Listen command identifies the ports on which your Web server will accept incoming requests.
Your Web server is set to listen to port 80 for non-secure Web communications and (in the virtual host
tags that define the secure server) to port 443 for secure Web communications.
If you set Apache to listen to a port under 1024, you must be root to start it. For port 1024 and above,
httpd can be started as a regular user.
Listen can also be used to specify particular IP addresses over which the server will accept connec-
tions.
15.3.17. BindAddress
BindAddress is a way of specifying which IP addresses your server will listen to. You should use
the Listen directive instead if you need this functionality. BindAddress is not used by your Web
server; by default it is commented out in httpd.conf.
15.3.18. LoadModule
LoadModule is used to load in Dynamic Shared Object (DSO) modules. More information on the
Apache’s DSO support, including exactly how to use the LoadModule directive, can be found in
Section 15.4. Note, the load order of the modules is important, so do not move them around.
15.3.19. IfDefine
The
IfDefine and /IfDefine tags surround configuration directives that are applied if the
"test" stated in the
IfDefine tag is true. The directives are ignored if the test is false.
The test in the IfDefine tags is a parameter name (for example, HAVE_PERL). If the parameter
is defined, meaning that it is provided as an argument to the server’s start-up command, then the test
is true. In this case, when your Web server is started, the test is true and the directives contained in the
IfDefine tags are applied.
By default, IfDefine HAVE_SSL tags surround the virtual host tags for your secure server.
IfDefine HAVE_SSL tags also surround the LoadModule and AddModule directives for the
ssl_module.
Vedere la pagina 181
1 2 ... 177 178 179 180 181 182 183 184 185 186 187 ... 281 282

Commenti su questo manuale

Nessun commento