
[英]http request with ec2 aws server is not working
我在 AWS 上有一个 EC2 实例,我已经在上面部署了 MERN 堆栈,我定义了 nginx 如下: 我已将安全组作为屏幕截图附上。 当我尝试使用浏览器或 postman 使用此 url http://clikjo.com/api/获取数据时,它运行良好,但是当我尝试使用 javascript 和 ...
[英]http request with ec2 aws server is not working
我在 AWS 上有一个 EC2 实例,我已经在上面部署了 MERN 堆栈,我定义了 nginx 如下: 我已将安全组作为屏幕截图附上。 当我尝试使用浏览器或 postman 使用此 url http://clikjo.com/api/获取数据时,它运行良好,但是当我尝试使用 javascript 和 ...
[英]How redirect partial uri in nginx to another app?
在我的带有 certbot 的 nginx 的服务器中,我有两个 api 在端口 5000 和 3000 上运行。 所有请求都是针对端口 5000 上的应用程序的,但是当我在“pdf-generator”uri 中请求它时,我想发送到端口 3000 上的应用程序例子: 我的域/abc -> ...
[英]Troubleshooting 502 Bad Gateway error on nginx reverse proxy configuration
我的 nginx 配置遇到了一些问题,我希望这里有人可以提供帮助。 我正在尝试设置一个反向代理以将流量从一个子域重定向到另一个服务器,但是当我尝试访问该子域时,我不断收到 502 Bad Gateway 错误。 这是我的配置文件: ` ` 我已经检查过并且 localhost:3000 上的服务 ...
[英]Kubernetes Nginx ingress appears to remove headers before sending requests to backend service
我正在尝试使用 Ngninx Ingress 为 URL 路由在 Kube.netes 集群上部署一个 SpringbBoot Java 应用程序托管在 Apache Tomcat 上。 更具体地说,我在本地机器上部署 Minikube,将 SpringBoot 应用程序公开为集群 IP 服务,并执 ...
[英]Why the number of successful requests is half the number of worker_connections in nginx?
如果我将 worker_connections 的数量设置为大约 968,并且只有一个工作人员在运行,然后使用脚本向服务器同时发出大约 500 个请求。 482每次都成功。 那是大约一半。 这是否意味着每个请求都需要两个工作连接? 请人解释。 worker_connections 和 requ ...
[英]How to fix this error with php and nginx with docker?
我刚从 docker 开始,我无法完成开始,因为我做错了什么阻止我这样做,而且我是 docker 的新手,也不知道如何在 inte.net 上搜索它(我继续尝试)。 docker-compose.yml Dockerfile nginx.conf 我运行命令docker-compose up ...
[英]How do I configure nginx to serve my Sinatra app instead of default page?
我正在尝试让 Sinatra 应用程序在 Digital Ocean 液滴上运行。 我已经启动了在var/www/myapp.com中运行的 Sinatra 应用程序。 我已经确认thin正在使用pgrep -l -f thin运行。 当我导航到myapp.com时,服务器显示默认的“欢迎使用 n ...
[英]installing open project for docker with extrenal network
我的服务器上有以下网络作为反向代理 此设置运行良好,我能够部署多个容器并且一切正常。 我正在尝试在此服务器上创建一个开放项目容器,我希望它使用 .net" 代理。我尝试从“openproject”撰写文件中删除代理,但没有帮助 我试过在 compose 文件中定义 the.network,但没有任何 ...
[英]Accessing rails active storage no routes matches error
我正在尝试将 rails server 托管为后端。 当路由以 /api 开头时,Nginx 将重定向到 localhost:3000。 在我的例子中,'etl.robust.best/api' 将 go 发送到托管 rails 的主机的 localhost:3000。 问题是我无法访问活动存储中的 ...
[英]after installing Certbot (nginx) my domain is showing default Amazon Linux 2 page
我已经在 amazon linux 2 上成功安装了 certbot,我的域有挂锁,但它没有显示托管在我的域上的节点应用程序。 现在它显示默认的亚马逊 linux 2 页。 在安装 certbot 之前,我的域显示了当前的应用程序。 我仍然可以通过 IP 地址和端口号访问该应用程序。 ...
[英]How to access my docker container without mentioning port using Host Nginx?
这是我的 Nginx.conf 文件错误信息这是我的 nginx.conf 文件,也尝试重启 nginx,但我可以在这个 http://ipaddress:8888 访问容器 ...
[英]Nginx location without an associated file
是否可以给 Nginx 一个路径,如果用户访问它返回一个没有关联文件的字符串? 目前,当我在我的 /etc/nginx/sites-enabled/site-name 中运行以下命令时,当我认为我应该返回 json 字符串时,我只得到一个 404。 因此,目标是在访问example.com/.wel ...
[英]Nginx cannot write cache content to the gcsfuse mount directory
我通过 gcsfuse 安装了存储桶来计算引擎 VM,然后在 VM 中运行 Nginx 程序。 通常 Nginx 程序使用 proxy_cache 指令将缓存写入目录,即挂载的桶。 但是,我有一个问题,Nginx可以在bucket目录下的文件系统中创建缓存文件,但是缓存文件的大小总是0B。 客户端请 ...
[英]FastAPI server running inside Docker container: Failed to connect to localhost port 8383 after 0 ms: Connection refused
我有一个容器化的 FastAPI 服务器,我正试图在 EC2 实例上启动它。 容器启动正常,我看到服务器正在运行: 我也能够 ssh 进入正在运行的实例,并且可以成功 curl 根页面( http://localhost:8383 )。 但是,从主机卷曲相同的端点 (http://localhost ...
[英]How to properly proxy through nginx and pm2 a Server Rendering app with React Router
大家好我正在尝试根据本教程使用带有 React Router 的服务器渲染在 AWS EC2 实例上部署一个测试应用程序,用于服务器渲染组件使用 nginx 代理到 localhost:PORT 如下 nginx 配置: 下午2: 简单地运行 我能够对我的应用程序做出反应,但只能对它的后端部分做出反 ...
[英]Docker compose with Nginx page refresh gives 404
我正在使用 docker compose 来提供前端 (vue.js)、后端和 nginx 反向代理。 当我导航到一条路线并点击刷新时,我收到 404 nginx 错误。 这是我的 docker 撰写的一部分,为了简洁省略了几行 这是属于反向代理服务的nginx.conf 这是前端的 nginx. ...
[英]images on WordPress site are not showing up and I'm getting 404 errors for pictures only in wp-content/uploads/ folder
我无法访问 wordpress 中的图像。采取的步骤: 设置文件权限和所有权 确保 nginx 服务正常完整的 ningx 站点配置文件在这里 实际访问错误日志: 任何故障排除的想法? 我怀疑 nginx try_files 指令有问题,但我可以在上传目录之外提供图像。 例如,我试过: 希望这会尝试 ...
[英]serve django staticfiles with nginx
我有 django 后端和 reactjs 前端。 我想用 nginx 加载 django 后端的 static 个文件,但他找不到任何东西。 gunicorn 可以找到 django 个页面但无法加载静态文件所以我希望 nginx 服务于 django 页面和静态文件。 这是我的设置.py: ...
[英]can access django admin through nginx port 80 but not port 81
我可以通过将流量从 nginx 端口 80 重定向到 django 端口 8000 来访问 Django admin。但是,当我将 nginx 监听端口更改为 81 时,我在登录 Django admin 后收到 nginx.conf docker-compose 文件 我已经更改了BACKE ...
[英]Why is a web server (i.e Nginx) REQUIRED for FastApis but not Express APIs?
一个典型的请求是这样处理的: 请求 -> Nginx 反向代理 -> AWS EC2 -> express api/fastapi -> 响应但我最大的困惑是为什么 fastapi 绝对需要 Nginx 才能工作,而 Express API 却不需要(尽管 nodejs 和 ...