סימן קלט סעיף ז
מִצְוַת נֵר חֲנֻכָּה, לְהַדְלִיק בַּפֶּתַח הַסָּמוּךְ לִרְשׁוּת הָרַבִּים, מִשּׁוּם פִּרְסוּמֵי נִסָּא, וְכָךְ הָיוּ עוֹשִׂין בִּזְמַן הַמִּשְׁנָה וְהַגְּמָרָא. וּבַזְּמַן הַזֶּה שֶׁאָנוּ דָרִים בֵּין הָאֻמּוֹת, מַדְלִיקִין בַּבַּיִת שֶׁהוּא דָר בּוֹ. וְאִם יֶשׁ לוֹ חַלּוֹן לִרְשׁוּת הָרַבִּים, יַדְלִיקֵם שָׁם. וְאִם לָאו, מַדְלִיקָן אֵצֶל הַפָּתַח. וּמִצְוָה שֶׁיַנִּיחֵם בַּטֶּפַח הַסָּמוּךְ לַפֶּתַח מִשְּׂמֹאל, שֶׁתְּהֵא מְזוּזָה מִיָמִין, וְנֵר חֲנֻכָּה מִשְּׂמֹאל, וְנִמְצָא שֶהוּא מְסֻבָּב בְּמִצְוֹת. וְיוֹתֵר טוֹב לְהַנִּיחָם בַּחֲלַל הַפָּתַח.
It is a mitzvah to light the menorah in the doorway that opens to the street, [public domain], in order to publicize the miracle; and it was done in this manner in the days of the Mishnah and the Talmud. Now, since we live among non-Jews, we light the menorah in the house, and if you have a window facing the street, you should light it there; if not, you should light it near the door. It is a mitzvah to place the menorah within a tefach4See glossary. of the left side of the door so that the mezuzah will be on the right5If for whatever reason there is no mezuzah, the Chanukah menorah should be placed on the right side of the door. (Shulchan Aruch 671:7) and the Chanukah lights on the left, and in so doing you find yourself surrounded by mitzvos. It is preferable to place the menorah within the open space of the door.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)