Defender's "Prevent Information Disclosure" doesn't work with nginx on EC2

The site is on EC2 instance, powered by Nginx. Defender suggested security fixes for Nginx. The code for "php execution" and "prevent information disclosure" fixes were added to Nginx config file but while the first one worked. Defender is still reporting the second one like it didn't take any effect.