Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. <IfModule mod_fastcgi.c>
  2. AddType application/x-httpd-fastphp5 .php
  3. Action application/x-httpd-fastphp5 /php5-fcgi
  4. Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
  5. <Directory /usr/lib/cgi-bin>
  6. Require all granted
  7. </Directory>
  8. FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -idle-timeout 600 -flush -pass-header Authorization
  9. </IfModule>
  10.  
  11. [global]
  12. pid = /run/php5-fpm.pid
  13. error_log = /var/log/php5-fpm.log
  14. include=/etc/php5/fpm/pool.d/*.conf
  15.  
  16. [www]
  17. user = www-data
  18. group = www-data
  19. listen = /var/run/php5-fpm.sock
  20. listen.owner = www-data
  21. listen.group = www-data
  22. pm = dynamic
  23. pm.max_children = 100
  24. pm.start_servers = 5
  25. pm.min_spare_servers = 5
  26. pm.max_spare_servers = 10
  27. chdir = /
  28. catch_workers_output = yes
  29. clear_env = no
  30. security.limit_extensions = ""
  31.  
  32. AddHandler application/x-httpd-fastphp5 .js
  33. <Files *.js>
  34. ForceType application/javascript
  35. Header always set Content-Type "application/javascript"
  36. ExpiresActive on
  37. ExpiresDefault "access plus 10 minute"
  38. </Files>
  39.  
  40. AddType application/javascript .js
  41. Action application/javascript /php5-fcgi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement