Outright ban. That was and usually remains the unquestioned official position of all mainstream Muslim clergy be them Sunni (of all schools except Zahiris who can hardly can be described as "mainstream"), Twelver Shi'a, Zaydi Shi'a or Ibadi. Some Isma'ilis differ, as did some Sufi traditions and other minor sects. There are nuances (many Classical scholars held wine is permitted for medical reasons) but in general, the general religious consensus is that public consumption of any inebriating beverage containing alcohol is generally forbidden to Muslims, period. Private consumption is near-unanimously regarded as sinful as well, but rarely repressed before modern times.
This is, of course, the general official stance of the clergy. Social practice was often very very different and varied a lot by time and places. In some cases (Ottoman elites in many provinces included) the theoretical ban was simply not enforced and alcohol drinking was widely tolerated even in the open. Notably, the practice is boastfully celebrated in many literary texts across all the periods, principal centres and main languages of the Islamic world (alongside other equally religiously forbbiden things, such as extramarital and homoerotic love, leading a famed Orientalist, Ignaz Goldziher IIRC, to note that traditional Islamicate literatures are essentially a revolt against socio-religious norms). Historically, it is probably one of the least strictly practiced Islamic norms, but one that is still very rarely questioned in principle. Other times and places enforced the prohibition a lot more strictly (some modern countries can get very harsh on it).
To my knowledge, no Muslim Ottoman religious scholar ever seriously suggested that alcohol can be in any way permitted under Shari'a. If floated, such an idea would have been considered borderline insane by most other scholars, as in, more likely to be ignored as nonsense than deserving refutation. There was simply no signifcant debate on the topic at large by Ottoman times (though I am aware of heated discussions on secondary relevant issues, such as the mentioned permissibility of wine for medical purposes).