Small refactor to align nginx and apache sensors