Fixes broken nginx configs. Thanks @kusmierz! Fixes #982