Fix nginx code