(ז) מִצְוַת נֵר חֲנֻכָּה, לְהַדְלִיק בַּפֶּתַח הַסָּמוּךְ לִרְשׁוּת הָרַבִּים, מִשּׁוּם פִּרְסוּמֵי נִסָּא, וְכָךְ הָיוּ עוֹשִׂין בִּזְמַן הַמִּשְׁנָה וְהַגְּמָרָא. וּבַזְּמַן הַזֶּה שֶׁאָנוּ דָרִים בֵּין הָאֻמּוֹת, מַדְלִיקִין בַּבַּיִת שֶׁהוּא דָר בּוֹ. וְאִם יֶשׁ לוֹ חַלּוֹן לִרְשׁוּת הָרַבִּים, יַדְלִיקֵם שָׁם. וְאִם לָאו, מַדְלִיקָן אֵצֶל הַפָּתַח. וּמִצְוָה שֶׁיַנִּיחֵם בַּטֶּפַח הַסָּמוּךְ לַפֶּתַח מִשְּׂמֹאל, שֶׁתְּהֵא מְזוּזָה מִיָמִין, וְנֵר חֲנֻכָּה מִשְּׂמֹאל, וְנִמְצָא שֶהוּא מְסֻבָּב בְּמִצְוֹת. וְיוֹתֵר טוֹב לְהַנִּיחָם בַּחֲלַל הַפָּתַח.
(7) 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 tefach[width of one's hand across] 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.
Rava said: It is obvious to me that there is a fixed list of priorities. When a person is poor and must choose between purchasing oil to light a Shabbat lamp for his home or purchasing oil to light a Hanukkah lamp, the Shabbat lamp for his home takes precedence. That is due to peace in his home; without the light of that lamp, his family would be sitting and eating their meal in the dark. Similarly, if there is a conflict between acquiring oil to light a lamp for his home and wine for the sanctification [kiddush] of Shabbat day, the lamp for his home takes precedence due to peace in his home. However, Rava raised a dilemma: When the conflict is between oil for a Hanukkah lamp or wine for kiddush of Shabbat day, what is the ruling in that case? Does kiddush of Shabbat day take priority because it is frequent, i.e., it is performed every week, and there is a principle: When there is a conflict between a frequent practice and an infrequent practice, the frequent practice takes precedence? Or, perhaps the Hanukkah lamp takes precedence due to publicity of the miracle? After he raised the dilemma, he then resolved it on his own and he ruled that, in that case, the Hanukkah lamp takes precedence due to publicity of the miracle.
(ז) נֵר חֲנֻכָּה מִצְוָה לְהַנִּיחוֹ עַל פֶּתַח בֵּיתוֹ מִבַּחוּץ בַּטֶּפַח הַסָּמוּךְ לַפֶּתַח עַל שְׂמֹאל הַנִּכְנָס לַבַּיִת כְּדֵי שֶׁתִּהְיֶה מְזוּזָה מִיָּמִין וְנֵר חֲנֻכָּה מִשְּׂמֹאל. וְאִם הָיָה דָּר בַּעֲלִיָּה מַנִּיחוֹ בַּחַלּוֹן הַסְּמוּכָה לִרְשׁוּת הָרַבִּים. וְנֵר חֲנֻכָּה שֶׁהִנִּיחוֹ לְמַעְלָה מֵעֶשְׂרִים אַמָּה לֹא עָשָׂה כְּלוּם לְפִי שֶׁאֵינוֹ נִכָּר:
It is a mitzvah to place the Chanukah lamp at the outside of one's house within the handbreadth closest to [the edge of] the entrance, so that the mezuzah will be to the right and the Chanukah lamp to the left. And if he was living in an attic [or second story apartment], he should place it in the window that is closest to the public domain. One who has placed the Chanukah lamp above twenty ells [cubits] has not done anything, because it is not recognizable [too high up].
(ז) נֵר חֲנֻכָּה מִצְוָה לְהַנִּיחוֹ עַל פֶּתַח בֵּיתוֹ מִבַּחוּץ בַּטֶּפַח הַסָּמוּךְ לַפֶּתַח עַל שְׂמֹאל הַנִּכְנָס לַבַּיִת כְּדֵי שֶׁתִּהְיֶה מְזוּזָה מִיָּמִין וְנֵר חֲנֻכָּה מִשְּׂמֹאל. וְאִם הָיָה דָּר בַּעֲלִיָּה מַנִּיחוֹ בַּחַלּוֹן הַסְּמוּכָה לִרְשׁוּת הָרַבִּים. וְנֵר חֲנֻכָּה שֶׁהִנִּיחוֹ לְמַעְלָה מֵעֶשְׂרִים אַמָּה לֹא עָשָׂה כְּלוּם לְפִי שֶׁאֵינוֹ נִכָּר:
It is a mitzvah to place the Chanukah lamp at the outside of one's house within the handbreadth closest to [the edge of] the entrance, so that the mezuzah will be to the right and the Chanukah lamp to the left. And if he was living in an attic [or second story apartment], he should place it in the window that is closest to the public domain. One who has placed the Chanukah lamp above twenty ells [cubits] has not done anything, because it is not recognizable [too high up].

