per host php.ini

Marcos Neves marcos.neves at gmail.com
Tue Jul 1 21:30:23 MSD 2008


I was afraid you said that. :(
I´ll try the new PHP 5.3 .user.ini to see if it works with fastcgi.

On Tue, Jul 1, 2008 at 2:08 PM, Igor Clark <igor at pokelondon.com> wrote:
> 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
>
>
>
>
>



-- 
Marcos Neves
+55 44 3263-8132
+55 44 9918-8488





More information about the nginx mailing list