The Talmud
עירובין דף ו׳Eruvin 6b
Amud b of Eruvin 6 — the second side of the page
English rendering prepared for The Gematria — not a historical translation.
Eruvin 6b · עירובין ו׳ ב
מי שהיו לו שני בתים משני צידי רה"ר עושה לחי מכאן ולחי מכאן או קורה מכאן וקורה מכאן ונושא ונותן באמצע אמרו לו אין מערבין רשות הרבים בכך
— one who has two houses on the two sides of a public domain may set up a side-post here and a side-post there, or a cross-beam here and a cross-beam there, and then carry about in between them. They said to him: one does not make an eruv for a public domain in this way.
וכי תימא בכך הוא דלא מיערבא הא בדלתות מיערבא והאמר רבה בר בר חנה אמר רבי יוחנן ירושלים אילמלא דלתותיה ננעלות בלילה חייבין עליה משום רשות הרבים
And if you would say: it is in this way that an eruv may not be made for it, but with doors an eruv may be made for it — but did not Rabbah bar bar Chana say in the name of Rabbi Yochanan: Jerusalem, were it not that its doors are locked at night, they would be liable for it on account of the public domain!
ואמר עולא הני אבולי דמחוזא אילמלא דלתותיהן ננעלות חייבין עליהן משום רה"ר
And Ulla said: these gateways of Mechoza, were it not that their doors are locked, they would be liable for them on account of the public domain.
אמר רב יהודה הכי קאמר כיצד מערבין מבואות המפולשין לרשות הרבים עושה צורת הפתח מכאן ולחי וקורה מכאן
Rav Yehuda said: this is what it says — how does one make an eruv for alleyways that are open at both ends to the public domain? He makes the form of a doorway here, and a side-post and a cross-beam there.
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.