Configuration of php-fpm globally nginx for all sites

On every server block I am adding

Php Location Block

Is it works by adding to default server block only once For all websites.

adding expires headers to the all websites also not working through default conf


the defaut configuration is only another vhost. With Nginx the global configuration is the http block. But you cannot use the location directive in the http block.

But why do you add the php location block ? EasyEngine create the vhost configuration automatically.

1 Like

i created global.config

in nginx/conf.d

add added include file in everyvhost that’s solve my problem.