Gillingham failed to return to the top of League Two after they could only muster a draw at York.
Cody McDonald came close to putting the Gills in front when he looped a header into Michael Ingham's arms before later shooting just wide.
Minstermen forward Michael Rankine had a header from Ashley Chambers's corner blocked on the line by Leon Legge.
Neither side could find a winner, although Gillingham's Charlie Lee hit the crossbar from 30 yards late on.
VIEW FROM THE DRESSING ROOM
York City manager Gary Mills told BBC Radio York:
"I thought from start to finish today it was a wholehearted and committed performance to get a result and a clean sheet.
"After what we've been through over the last couple of weeks it's not been easy for us but to come out at home and put in a performance like that I thought my players were outstanding.
"We've conceded goals and everybody looks at the back four and the goa keeper but it's got to start from the front.
"Michael Rankine's performance tonight was immense. It's possibly what we've been missing a little bit."
Gillingham boss Martin Allen told BBC Radio Kent:
"When you play any team that's on the back of a 4-0 hammering, you're going to have your work cut out.
"We stepped higher up the field in the second half and went after them and played very well.
"I would normally go for the win but I had to draw back and keep the right balance. Four points from two away games is a good tally."
York City 24 Ingham 06 Parslow 16 Fyfield 22 O'Connell 32 Obeng 08 Kerr 17 Blair 20 Challinor (Rodman - 76' ) 29 McGrath 10 Chambers (McLaughlin - 81' ) 25 Rankine Substitutes 01 Musselwhite 27 Allen 19 Potts 26 McLaughlin 33 Rodman 09 Walker 21 Everson Gillingham 01 Nelson 02 Fish Booked 03 Martin Booked 06 Legge 12 Frampton 26 Barrett 07 Whelpdale 10 Robinson (Lee - 85' ) 14 Allen (Weston - 46' ) 20 Burton (Birchall - 64' ) 29 McDonald Substitutes 21 Forecast 15 Davies 08 Lee 18 Dack 24 Weston 28 Gregory 17 Birchall
Ref: Stephen Martin