"I was going after this game tonight," Boston manager Bobby Valentine said. "The guys really wanted this game, and I was just going to do everything we could to win it. Just frustration (from Wednesday's loss), and we wanted to get back into the winning ways."
The Red Sox were beaten 2-1 on Wednesday. The Rays' go-ahead run scored when Ross, in right field, had problems with the Tropicana Field roof and had to backpedal to catch Luke Scott's shallow sacrifice fly.
Ross extended Boston's lead to 5-2 Thursday on a two-run single off reliever Wade Davis with two outs in the eighth.
"Cody was big," Valentine said. "Cody will give you everything he has, and it's enough for me."
Doubront (4-1) allowed two runs and six hits over 5 2/3 innings. The left-hander was hit on the ear by a ball during batting practice Tuesday and cleared one day later to make his scheduled start.
Matt Moore (1-4) gave up three runs and five hits in six innings for Tampa Bay, which had its four-game winning streak snapped.
"I thought he finished really strong," Tampa Bay manager Joe Maddon said. "That's definitely a game to build off. He definitely pitched well enough to win. Confidence is a big thing. I know he's going to sleep better. Despite the loss, he's going to feel better about himself. That's just a right step in the right direction."
Moore retired his last 10 batters. He struck out eight and walked one.
After falling behind in the count 0-2, Ross worked a bases-loaded walk off Moore to put the Red Sox up 1-0 in the first. Moore avoided further damage by striking out Daniel Nava to end the inning.
Boston went ahead 2-0 on Marlon Byrd's second-inning homer. Ross made it 3-0 with his seventh homer, on an 0-2 pitch with two outs in the third.
Jeff Keppinger got the Rays within 3-1 on an RBI single in the third. Upton reached base with two outs when Kelly Shoppach was charged with catcher's interference and went to second when Luke Scott was hit by a pitch.
Rich Thompson, who has played in 1,388 minor league games, cut the Tampa Bay deficit to 3-2 with his first big league hit, a run-scoring single in the fourth. Thompson, acquired in a trade with Philadelphia on Wednesday, also stole second and third after his hit.
The Rays loaded the bases later in the fourth with two outs, but Scott hit a hard liner that was caught by first baseman Adrian Gonzalez.
"We always have pretty good series against the Rays," Boston shortstop Mike Aviles said. "The fact they won (Wednesday) in a close game, and another close game today, it's definitely good to get that win. Bobby did the right thing mixing and matching later in the game."
Aviles was ejected in the seventh by plate umpire Dan Bellino for arguing after striking out. It was his first career ejection.
"Guys had complaints tonight and I was with them," Valentine said. "We've got to fight through it, that's for sure. We're trying our hardest, and I think they're trying their hardest, too."
Tampa Bay second baseman Will Rhymes was not in the lineup a night after being hit by a pitch in the right arm, fainting after walking to first base and having to be driven off the field on a cart. Maddon said Rhymes, who is day to day with a bruised right forearm, was feeling better and wanted to take batting practice but the team trainer wouldn't allow it.
Tampa Bay senior adviser Don Zimmer returned to Tropicana Field for a game for the first time since the opening weekend of the season against the New York Yankees. The 81-year-old ex-Red Sox and Cubs manager has been undergoing dialysis for kidney problems. ... Valentine said DH David Ortiz will play first base and Gonzalez will move to right field for at least one game of this weekend's interleague series at Philadelphia. ... Tampa Bay 3B Evan Longoria (partial tear left hamstring) took grounders and continues taking batting practice.