【问题标题】:How to configure Nginx .conf files on Azure App Services如何在 Azure 应用服务上配置 Nginx .conf 文件
【发布时间】:2021-05-07 10:13:30
【问题描述】:

我在使用 Nginx 的 Azure 应用服务 (Python) 时遇到错误,因为网关错误。 Investigation 让我明白 URL 长度太长,Nginx 无法处理。所以我需要调整large client head buffers

但是当我尝试访问 nginx .conf 文件时,我似乎不是 allowed 这样做。

有没有办法做到这一点?

client_header_buffer_size 5120k;
large_client_header_buffers 16 5120k;

【问题讨论】:

    标签: python nginx azure-web-app-service


    【解决方案1】:

    我已尝试在 default.conf 文件中设置与您类似的重定向设置。我可以设置成功,但几分钟后,它就消失了。我找不到 nginx 文件夹和 default.conf 文件。

    我所有的尝试都失败了,所以我认为我们无权像您的链接所说的那样更改它。

    所以我建议您使用 nginx 创建自定义容器来托管您的 webapp。它将帮助您解决问题。

    官方文档:

    1. Migrate custom software to Azure App Service using a custom container

    2. uwsgi-nginx-docker

    【讨论】:

      猜你喜欢
      • 2020-10-30
      • 1970-01-01
      • 1970-01-01
      • 2012-04-07
      • 1970-01-01
      • 2013-10-05
      • 2018-05-30
      • 1970-01-01
      • 2021-10-25
      相关资源
      最近更新 更多