简体   繁体   English

使用Azure Web App作为反向代理

[英]Using azure webapp as reverse proxy

I'm trying to setup empty azure web app to be reverse proxy following exact same steps as described here: https://tomssl.com/2015/06/15/create-your-own-free-reverse-proxy-with-azure-web-apps/ . 我正在尝试按照与此处所述完全相同的步骤将空的Azure Web应用程序设置为反向代理: https : //tomssl.com/2015/06/15/create-your-own-free-reverse-proxy-with- azure-web-apps / First of all it seems that allowedservervariables can not be transformed, it is set to deny in application.config file. 首先,似乎allowedserver变量无法转换,在application.config文件中将其设置为deny。 When i remove them i just get 404 not found when i try to access my webapp (HTTP Error 404.4 - Not Found The resource you are looking for does not have a handler associated with it.). 当我删除它们时,当我尝试访问我的Web应用程序时,只会得到404找不到(HTTP错误404.4-找不到。您要查找的资源没有与之关联的处理程序。)。

Anyone have some suggestions? 有人有建议吗?

Cheers 干杯

You should try Azure Function Proxies instead 您应该尝试使用Azure Function代理

https://markheath.net/post/azure-functions-v2-proxies https://markheath.net/post/azure-functions-v2-proxies

A developer can create an Azure Function Proxy within the same UI as a Function App. 开发人员可以在与Function App相同的UI中创建Azure Function代理。 Within the configuration, a developer will be asked to provide a Route template, identify which HTTP methods are allowed and provide a Backend URL where the HTTP request will be routed to. 在配置中,将要求开发人员提供路由模板,确定允许使用哪些HTTP方法,并提供将HTTP请求路由到的后端URL。 Backend URLs do not need to be static as you can dynamically set the URL based on content within the request or from your application settings. 后端URL不必是静态的,因为您可以根据请求中的内容或应用程序设置来动态设置URL。

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

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