仅使用 ipv6 的客户端无法访问 Apache 反向代理

问题描述 投票:0回答:1

我在 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>
apache ubuntu devops reverse-proxy
1个回答
0
投票

未针对 ipv6 完成 DNS 映射。我添加了 AAAA 类型记录:

AAAA   api   server-ip6-value    AUTO
© www.soinside.com 2019 - 2024. All rights reserved.