Revert "Nginx: Remove duplicate checks."

This reverts commit c33912b1e124296946aa2ad3c9d436dadb0c5781.