my current settings are:
My nginx http
settings are like ..
http{
# ...
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/.conf*;
}
and each server conf
files I have this include:
server{
# top settings..
include common.conf;
include wordpress.conf;
# etc ..
}
So, what I'd like to use and have is something like this:
http{
# ...
for each server in (/etc/nginx/sites-enabled/*.conf){
include common.conf;
include wordpress.conf;
}
}
I'd like to define that common.conf
and wp
settings to be automaticaly included in each server, to define it in http
block, and not to include it in each server
block ..
Thanks for any help