提问人:Sukhpal Singh 提问时间:9/17/2023 更新时间:9/17/2023 访问量:38
仅使用 ipv6 的客户端无法访问 Apache 反向代理
Apache reverse proxy is not accessible from clients who are using only ipv6
问:
我在 Ubuntu 22.x 上安装了 Apache 反向代理,在 ubuntu 服务器上启用了 ipv6。 它从启用了 ipv4 或同时启用 ipv4/ipv6 的客户端工作正常。但它不适用于仅启用 ipv6 的客户端。错误是ERR_ADDRESS_UNREACHABLE
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName api.site.com
ProxyPreserveHost On
ProxyPass / http://main-server-ip/
ProxyPassReverse / http://main-server-ip/
Include /etc/letsencrypt/ssl.conf
ServerAlias site.com
SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerName site.com
ProxyPreserveHost On
ProxyPass / http://mainserveripp/
ProxyPassReverse / http://mainserveripp/
RewriteEngine on
</VirtualHost>
</IfModule>
答:
0赞
Sukhpal Singh
9/17/2023
#1
未对 ipv6 进行 DNS 映射。我添加了 AAAA 类型记录:
AAAA api server-ip6-value AUTO
评论