location ~ \.php$ {
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
Как я понял, деструктор вызывается после завершения выполнения скрипта в классе
The destructor method will be called as soon as there are no other references to a particular object, or in any order during the shutdown sequence.
curl nginx -H 'Host: promo.mdtest.org'