简体   繁体   English

Azure linux python 上的 webapps 裸重定向到 www

[英]Azure webapps on linux python redirect naked to www

I have a python App Service on Linux in Azure with a custom domain and https.我在 Azure 中的 Linux 上有一个 python 应用程序服务,并带有自定义域和 Z5E056C500A01C4B6AADE5117B The https is on the www domain only. https 仅在 www 域上。 How can I redirect the naked domain request to www in https?如何将裸域请求重定向到 https 中的 www? for example https://domainname.com to https://www.domainname.com例如https://domainname.comhttps://www.domainname.Z4D236D9A50D102C50ZEC50Z

I didn't find any solution but I have a plan.我没有找到任何解决方案,但我有一个计划。 I check the request at the application level and redirect to www if the domain doesn't begin with the www.如果域不以 www 开头,我会在应用程序级别检查请求并重定向到 www。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM