【发布时间】:2019-09-05 13:32:54
【问题描述】:
我在 AWS 的私有子网中有一个 Postgres 数据库,我想连接到 AWS。
所以我在公共子网中创建了一个带有 httpd (Apache) 的 ec2 作为反向代理,以便将我的请求转发到 RDS 数据库。
用户 -> pgadmin 客户端 -> 443 上的反向代理 -> RDS。
作为信息,我只能在公共子网上打开 443 和 80。
我的 Apache 配置:
ProxyPass /rds http://rds-link.compute.amazonaws.com:5432
ProxyPassReverse /rds http://rds-link.compute.amazonaws.com:5432
在 Postgres pgadmin(我的笔记本电脑)中,我尝试使用 https://link-of-reverse-proxy/rds 作为主机连接到数据库,但它不是 wokring。 我收到错误:无法将主机名转换为地址
我错过了什么吗?
提前谢谢你
【问题讨论】:
标签: postgresql apache amazon-web-services amazon-rds