Guest User

Untitled

a guest
Jan 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. <IfModule mod_fastcgi.c>
  2. FastCgiIpcDir /var/lib/apache2/fastcgi
  3. FastCgiWrapper /usr/lib/apache2/suexec FastCgiConfig -idle-timeout
  4. 110 -killInterval 120 -pass-header HTTP_AUTHORIZATION -autoUpdate
  5. ScriptAlias /php-fcgi/ /var/www/cgi-bin/
  6. </IfModule>
  7.  
  8. PHP_FCGI_CHILDREN=3
  9. export PHP_FCGI_CHILDREN
  10.  
  11. PHP_FCGI_MAX_REQUESTS=5000
  12. export PHP_FCGI_MAX_REQUESTS
  13.  
  14. # which php-cgi binary to execute
  15. exec /etc/php/phpfarm/inst/php-${version}/bin/php-cgi
  16.  
  17. <VirtualHost *:80>
  18. ServerName localhost
  19. DocumentRoot /var/www
  20. <Directory "/var/www">
  21. Options Indexes FollowSymLinks MultiViews
  22. AllowOverride All
  23. Order allow,deny
  24. allow from all
  25. AddHandler php-cgi .php
  26. Action php-cgi /php-fcgi/php5317.fcgi
  27. </Directory>
  28. </VirtualHost>
  29.  
  30. <VirtualHost *:80>
  31. ServerName 5317.localhost
  32. DocumentRoot /var/www
  33. <Directory "/var/www">
  34. Options Indexes FollowSymLinks MultiViews
  35. AllowOverride All
  36. Order allow,deny
  37. allow from all
  38. AddHandler php-cgi .php
  39. Action php-cgi /php-fcgi/php5317.fcgi
  40. </Directory>
  41. </VirtualHost>
  42.  
  43. <VirtualHost *:80>
  44. ServerName 547.localhost
  45. DocumentRoot /var/www
  46. <Directory "/var/www">
  47. Options Indexes FollowSymLinks MultiViews
  48. AllowOverride All
  49. Order allow,deny
  50. allow from all
  51. AddHandler php-cgi .php
  52. Action php-cgi /php-fcgi/php547.fcgi
  53. </Directory>
  54. </VirtualHost>
  55.  
  56. 127.0.0.1 localhost
  57. 127.0.0.1 547.localhost
  58. 127.0.0.1 5317.localhost
  59.  
  60. # The following lines are desirable for IPv6 capable hosts
  61. ::1 ip6-localhost ip6-loopback
  62. fe00::0 ip6-localnet
  63. ff00::0 ip6-mcastprefix
  64. ff02::1 ip6-allnodes
  65. ff02::2 ip6-allrouters
  66.  
  67. <FilesMatch ".php$">
  68. SetHandler php-cgi
  69. </FilesMatch>
Add Comment
Please, Sign In to add comment