Fix nginx support (first attempt)