The victory saw Micky Mellon's side move on to 86 points, with Salop now just two points away from guaranteeing an instant return to League One.
Despite both Bury and Southend winning, Shrewsbury's fate now rests very much their own hands after they beat a York side, in front of a roaring home crowd of more than 6,000 fans.
Mellon sprung a selection surprise before kick-off with four changes from the team that slipped to a 1-0 defeat at Bury.
Ryan Woods and Connor Goldson, who were suspended for the trip to Gigg Lane, came straight back into the starting line-up as Town returned to their preferred 3-5-2 system.
Up front there were recalls for Tyrone Barnett and Andy Mangan who started at the expense of Jean-Louis Akpa Akpro and James Collins.
Keith Southern and Jordan Clark were the other players to make way, with a slight knock meaning Southern was unable to take his place among the substitutes.
In the wake of the terrible referring that saw Mangan's goal wrongly chalked off against Bury, Town were almost made to pay for another poor decision inside the opening five minutes.
Goldson slid in on the edge of the box, but referee Brendan Malone gave a foul with goalkeeper Jayson Leutwiler forced to pull off a diving save from Michael Coulson's strike.
It was Town who though were enjoying the lion's share of possession and they took a deserved lead in the 12th minute following a succession of corners.
Bobby Grant's whipped in delivery was powerfully met by Ellis, with the defender's header sailing past goalkeeper Michael Ingham and into the roof of net.
Full of confidence, Town began to pile forward and almost doubled their advantage minutes later.
Cameron Gayle did brilliantly to trick his way into the box and cut the ball back to Barnett, but the striker hit a weak shot which Ingham comfortably saved.
Shrewsbury were now enjoying almost complete control, but they had a scare in the 25th minute when a hopeful ball over the top fell kindly for Shaquile Coulhurst.
The on-loan Tottenham striker had time to steady himself before hitting a low strike, which Leutwiler was forced to tip around the post.
But the momentum was all with Mellon's side and they came close to extending their advantage just after the half-hour mark.
The lively Grant burst into the box and hit a rasping drive which was too hot for Ingham to hold, but with no Town player on hand to tuck the ball away.
Mellon's side were now at their free-flowing best, with Jermaine Grandison, Gayle and Barnett, all producing flicks and tricks to drive them forward.
And they came a whisker away from making 2-0 just before the break with Barnett flashing a header across goal from a Liam Lawrence corner.
It was Shrewsbury who continued to press at the start of the second half with Mangan getting to the byline and hitting a low cross with was snuffed out by the goalkeeper.
But with boss Russ Wilcox ringing in their ears, York went in search of an equaliser with Leutwiler producing a brilliant save to tip the ball over the bar following Luke Summerfield's long strike.
In glorious sunshine, Town quickly regained the initiative.
But sensing his team needed fresh legs, Mellon decided to switch things up on the hour mark with Collins and Akpa Akrpo coming on for Barnett and Mangan.
It was York though who had the next best chance, with Leutwiler beating away a fierce strike from Coulthirst after Grandison had been caught in possession.
Buoyed by the move, the visitors began pushing forward with former Shrewsbury star Summerfield hitting the post with a brilliant strike from 30 yards.
With his side now growing in stature, Wilcox made his first change with just over 20 minutes remaining.
Former Town loanee Shaun Miller, who scored three goals in eight games for Salop last season, was the man introduced at the expense of defender Femi Ilesanmi.
The game was now proving to be an even contest with Town coming to close to doubling their advantage, when the lively Akpa Akrpo headed wide from Lawrence's corner.
But with 10 minutes remaining the away side had a glorious chance to draw level.
A defence splitting pass found Miller who weaved his way into the box before blazing a strike over the bar when he should have scored.
Town hit back with a swift counter-attacking move seeing Akpa Akpro race clear, but the Frenchman's low strike was comfortably saved by Ingham.
Despite three minutes of stoppage time, the chance proved to be the last meaningful action of the match, with Town recording a win that puts them within touching distance of promotion.

. 95ffc23f-f774-461b-8fbf-6b9a7e3dd15c.jpg

. 8b7d1c09-f1c9-4da1-990b-a388af439f4a.jpg

5. 026cd957-23c1-464e-bb26-5e6e9ba07b5c.jpg

6. e92183a0-d6d7-4c99-8cc4-87c935c8df62.jpg

7. 6a4d5294-ad84-4f6e-b1ec-15904694f9ae.jpg


