Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_fastcgi.c>
- FastCgiIpcDir /var/lib/apache2/fastcgi
- FastCgiWrapper /usr/lib/apache2/suexec FastCgiConfig -idle-timeout
- 110 -killInterval 120 -pass-header HTTP_AUTHORIZATION -autoUpdate
- ScriptAlias /php-fcgi/ /var/www/cgi-bin/
- </IfModule>
- PHP_FCGI_CHILDREN=3
- export PHP_FCGI_CHILDREN
- PHP_FCGI_MAX_REQUESTS=5000
- export PHP_FCGI_MAX_REQUESTS
- # which php-cgi binary to execute
- exec /etc/php/phpfarm/inst/php-${version}/bin/php-cgi
- <VirtualHost *:80>
- ServerName localhost
- DocumentRoot /var/www
- <Directory "/var/www">
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- AddHandler php-cgi .php
- Action php-cgi /php-fcgi/php5317.fcgi
- </Directory>
- </VirtualHost>
- <VirtualHost *:80>
- ServerName 5317.localhost
- DocumentRoot /var/www
- <Directory "/var/www">
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- AddHandler php-cgi .php
- Action php-cgi /php-fcgi/php5317.fcgi
- </Directory>
- </VirtualHost>
- <VirtualHost *:80>
- ServerName 547.localhost
- DocumentRoot /var/www
- <Directory "/var/www">
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- AddHandler php-cgi .php
- Action php-cgi /php-fcgi/php547.fcgi
- </Directory>
- </VirtualHost>
- 127.0.0.1 localhost
- 127.0.0.1 547.localhost
- 127.0.0.1 5317.localhost
- # The following lines are desirable for IPv6 capable hosts
- ::1 ip6-localhost ip6-loopback
- fe00::0 ip6-localnet
- ff00::0 ip6-mcastprefix
- ff02::1 ip6-allnodes
- ff02::2 ip6-allrouters
- <FilesMatch ".php$">
- SetHandler php-cgi
- </FilesMatch>
Add Comment
Please, Sign In to add comment