fix nginx rule (should use server_name for hostname)