Skip to content

Instantly share code, notes, and snippets.

@arbo-hacker
Last active October 16, 2016 03:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Optimización de Apache para Wordpress
Timeout 100
KeepAlive On
MaxKeepAliveRequests 1000
KeepAliveTimeout 5
<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>
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 25
ThreadsPerChild 25
MaxRequestWorkers 250
MaxConnectionsPerChild 10000
ServerLimit 12
</IfModule>
[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