NEW YORK – “Modern Family’s” Jesse Tyler Ferguson might be a star now, but he remembers those awful days sweating it out in front of casting directors.

“I’ve had many horrible, horrible auditions,” he says. “You go into those situations desperately needing that job. Whether or not you want it or not, you need it to survive.”

Ferguson is revisiting his lean early years in a cameo for “Submissions Only,” a new online sitcom wrapping up its second season that takes a behind-the-scenes look at the life of New York theater hopefuls.

Ferguson will join some of Broadway’s brightest lights who have made appearances in the series, including Kristin Chenoweth, Chita Rivera and Hunter Foster.

“We’ve definitely made friends through this process with people who I would never even dream of going up to at a party and then, suddenly, we’re giving them direction on a set, which is hysterical,” says Andrew Keenan-Bolger, who together with Kate Wetherhead, created, writes and stars in the show.

Each episode begins with an audition and the one featuring Ferguson has him belting out an original song, and eventually crashing and burning.

“You get in your head too much and you start second-guessing everything,” says Ferguson.

Landing Ferguson wasn’t hard: All three are friends. He and Wetherhead were both in “The 25th Annual Putnam County Spelling Bee” and Keenan-Bolger played Ferguson’s role when the show went on tour.