per host php.ini

Igor Clark igor at pokelondon.com
Tue Jul 1 21:08:49 MSD 2008


You can run php-cgi instances as FastCGI servers with different  
configurations (using -c flag to point to different .ini files) on  
different ports, then refer to them specifically inside server {}  
contexts in nginx config. e.g.

> server {
> 	server_name 	server1;
> 	location ~ \.php$ {
> 		fastcgi_pass	192.168.0.1:10001;
> 	}
> 	# other stuff ...
> }
>
> server {
> 	server_name 	server2;
> 	location ~ \.php$ {
> 		fastcgi_pass	192.168.0.1:10002;
> 	}
> 	# other stuff ...
>
> }



On 1 Jul 2008, at 17:49, Marcos Neves wrote:

> is it possible to have diferent php.ini configurations for each  
> virtualhost,
> like .htaccess while using mod_php with apache?
> If not, there´s any workround?
>
> -- 
> Marcos Neves
> +55 44 3263-8132
> +55 44 9918-8488
>

--
Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 5355  
• www.pokelondon.com








More information about the nginx mailing list