
[英]What Should be Security Rules for NGINX Ingreses
我计划将我们的一些服务扩展到 inte.net。 如果可以提供任何建议来保护我从 NGİNX 或 NGİNX-CONTROLLER 配置 Map 进入 https://github.com/kube.netes/ingress-nginx/blob/main/docs/user-guide/ngin ...
[英]What Should be Security Rules for NGINX Ingreses
我计划将我们的一些服务扩展到 inte.net。 如果可以提供任何建议来保护我从 NGİNX 或 NGİNX-CONTROLLER 配置 Map 进入 https://github.com/kube.netes/ingress-nginx/blob/main/docs/user-guide/ngin ...
[英]Nginx: install dynamic module on the server
我的 nginx 版本是nginx/1.18.0 (Ubuntu) 。 我想在服务器https://www.nginx.com/resources/wiki/modules/headers_more/上安装一个动态模块。 官方文档指出: “从 nginx.org 获取 nginx 源代码,例如版本 ...
[英]How to handle Nginx reverse proxy 502 Error in specific case?
这是我的 nginx 默认值 我在这个 /opt/code-server/login-with-args.html 位置有 login-with-args.html 但 linux 中的 curl 命令给了我 200 但在我的浏览器中它显示了 502 错误。 这就是我从 UI https://ur ...
[英]Django static files are not found inside docker container
我正在使用 Docker 构建一个 Django 应用程序。当数据库准备就绪时,我在我的入口点运行命令 collectstatic。 当我检查我的容器时, /static/文件夹是空的。 因此,Nginx 无法加载 static 文件。 这是我的 docker-compose 文件 我的Nginx配 ...
[英]How to configure nginx reverse proxy for apache with servername on different server
我有server1和 public IP, server2有本地 IP,我想使用 nginx 反向代理从server1 public IP 访问我在server2上由 apache 托管的应用程序。 这是我的配置。 Apache2 配置 Nginx 配置 使用该配置,我在访问 http://&l ...
[英]Kubernetes Azure OAuth2 with multiple hosts in one Nginx Ingress - CORS error
我正在寻找为具有多个主机定义的 Nginx Ingress 配置 OAuth2 和 Azure 提供程序的方法。 我需要在 AKS 上为我的应用程序 dev.example.com 添加身份验证,它具有基于身份服务的内部身份验证。 我读过这样的例子: https://kristhecodinguni ...
[英]Containerized Nginx reverse proxy returning a 502 Bad Gateway
我正在尝试使用 Nginx 反向代理公开公开 Ombi。 Nginx 和 Ombi 都在 Ubuntu 22 主机上的容器中运行。 打开 http://hostname:3579(3579 是它使用的端口)工作正常,如果我在我的路由器中打开 3579,那么http://MYDOMAIN.dev: ...
[英]nginx: [emerg] open() "/www/server/nginx/conf/enable-php.conf" failed
错误:在配置文件中检测到错误。 请在继续之前解决它 nginx: [emerg] open() "/www/server/nginx/conf/enable-php.conf" 在 /www/server/nginx/conf/nginx.conf:68 nginx 中失败(2:没有这样的文件或目录 ...
[英]How to make connections between docker containers via DNS name?
我已经成功设置了以下容器: 突触: Matrix 聊天服务器不暴露于外部 web NGINX 反向代理允许外部连接连接到 synapse 的客户端 API 阻止与 synapse 管理员 API 的外部连接电线卫士: 虚拟专用网络我连接VPN访问synapse的admin API API 可 ...
[英]Cisco Yang Suite - NGINX HTTP Host Header Error
我使用这个repo安装了 Cisco Yang Suite 运行 bash 脚本后,它出现了,我从远程机器得到 HTTP 400 Bad Request,在调试中,我得到了下面的错误。 我导航到 production.py 脚本并将允许的主机修改为下面但即使在删除图像并重新组合后仍然出现错误。 我期 ...
[英]Nginx not appending path when using proxy_path
我正在尝试使用 Nginx 作为一些后端的反向代理。 它可能不相关,但后端都托管在一个 Docker.network 中,并且 .network 是使用docker-compose创建的。 后端都有相同的端点需要公开,所以为了减少重复的配置行,我尝试使用map 。 已添加resolver行,因为 N ...
[英]NGINX, How to use same location path for different target folder?
我正在尝试在 nginx 中使用相同的位置路径。 但它正在渲染应用程序文件夹。 我正在尝试在“/”路径的情况下呈现“主”文件夹 html 文件,在任何其他路径的情况下呈现“app”文件夹 html 文件。 ...
[英]Wordpress config misbehaving in opposite ways using two configs
如果我在前面提到的 wordpress 站点的 sites-available in nginx 中有这个配置,它不会显示根页面(403 错误),但如果我手动输入他们的 URL,它会显示特定页面,例如 https:// 子域。域名.tld/suchandsuch 然而,如果我设置了这个配置,它会做相 ...
[英]Correct proxy configuration for nginx server to access rest api
我有一个配置如下的 nginx 服务器: 为了显示我的前端,此配置工作正常。 凸轮的代理也正常工作。 我在 api 的代理配置中遇到问题。api 在“https://some_ip:some_port”下进行了完整性检查,它只返回“200: ok”。 否则我应该能够使用获取请求发出请求,例如 如果 ...
[英]Nginx not serving on the domain
我已经在虚拟机上安装了 nginx(操作系统:Ubuntu 18)。 我正在学习本教程,但问题是我无法看到在 your_domain.com 上提供的内容。 这是我的 nginx.conf: 启用站点和可用站点目录中的文件:默认 your_domain your_domain(启用站点和可用站点) ...
[英]In Nginx how to assign cache control response header
根据响应代码,我想在 map 中设置缓存控制 header 如果它是 301,则设置“无缓存、无存储、必须重新验证”,否则默认设置响应附带的值。 是否有 response_cache_controle 或类似的命令 ...
[英]Laminas Framework Routing Issues
我正在使用 Laminas 框架开发一个网站。 某些 URI(下面列出)未按预期运行。 我不确定问题是 Laminas 还是 php:fpm 或 nginx。问题: 我怎样才能让 (G) 和 (H) 被 Laminas 完全相同地对待,以便呈现我的自定义“404 页面未找到”? (C)和(D)返回 ...
[英]How to use nginx (intsalled on Docker) to reverse proxy MySQL (installed on Docker too)
这里是 docker-compose.yamlservices: nginx: image: nginx:1.23.3 container_name: nginx volumes: - /lnmpg/nginx/conf.d:/etc/nginx/conf. ...
[英]Why i cant use ufw deny to "Nginx HTTP" from x.x.x.x?
我如何将此规则添加到我的 ufw 列表中? 我知道 nginx.conf,但由于一个原因,这个变体不适合我。 我尝试了上面的命令,但它不起作用。 我也试过 banned:80/tcp,但是这个规则对 Nginx 不起作用。就说我 ufw 有这样的规则。 ...
[英]django and nginx is not working on docker
i am a beginner in the docker and i want to deploy my django project using nginx and postgres on vps using docker so I create a dockerfile and docke ...