| [INFO] different between Apache 2.2.22 and 2.4.1 [message #96016] |
Tue, 06 March 2012 10:45  |
|
Apache 2.4.1 look like overhaul for 2.2.22. Many different between them.
Example:
1. Config for mpm:
1.1. for Apache 2.2.22
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
1.2. for Apache 2.4.1
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
2. Static versus dynamic MPM - In version 2.2.22, mpm is static. In version 2.4.1, mpm as module (like mod_suphp and other modules)
3. Add mod_proxy_fcgi and then doesn't need mod_fastcgi/mod_fcgi for handling php through php-cgi
4. Doesn't need 'NameVirtualHost' for 'listening' ip and port. Like Nginx, just need 'Listen'
5. Able running multiple instances with different httpd.conf
6. ... [still investigation]
[Updated on: Tue, 06 March 2012 14:19] Report message to a moderator
|
|
|
|
|
|
|
|