thias / puppet-php

Puppet module to manage PHP
Other
49 stars 67 forks source link

Adding if statement to templates/fpm/pool.conf.erb #22

Closed damonconway closed 10 years ago

damonconway commented 10 years ago

Hi, I've added an if statement to pool.conf.erb that checks to see if listen_allowed_clients is set to any. If so, it will add a commented listen.allowed_clients. Otherwise, add the original line. This is the only way I've been able to make php-fpm actually allow any client. Php-fpm fails if it is set to nothing or 0.0.0.0.

Thanks, Damon

thias commented 10 years ago

I recall having seen that too. But I was able to get a proper list of addresses to allow, and used it. But the change does make sense. Thanks!