Last active
October 16, 2016 03:20
-
-
Save arbo-hacker/46862cf2e33a8b29f781a600cd8f78ed to your computer and use it in GitHub Desktop.
Optimización de Apache para Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timeout 100 | |
KeepAlive On | |
MaxKeepAliveRequests 1000 | |
KeepAliveTimeout 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_fastcgi.c> | |
AddType application/x-httpd-fastphp5 .php | |
Action application/x-httpd-fastphp5 /php5-fcgi | |
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi | |
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization | |
<Directory /usr/lib/cgi-bin> | |
Require all granted | |
</Directory> | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mpm_event_module> | |
StartServers 2 | |
MinSpareThreads 25 | |
MaxSpareThreads 75 | |
ThreadLimit 25 | |
ThreadsPerChild 25 | |
MaxRequestWorkers 250 | |
MaxConnectionsPerChild 10000 | |
ServerLimit 12 | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[www] | |
user = www-data | |
group = www-data | |
listen = /var/run/php5-fpm.sock | |
pm = dynamic | |
pm.max_children = 5 | |
pm.start_servers = 2 | |
pm.min_spare_servers = 1 | |
pm.max_spare_servers = 3 | |
pm.max_requests = 2000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment