我正在尝试使FreeIPA服务器以其他外部域名运行,如下所示:FreeIPA behind HTTP proxy with different hostname
我的Apache配置如下:
<Location /ipa/>
AuthType none
Require all granted
ProxyPass "https://ipasvr.local/"
ProxyPassReverse "https://ipasvr.local/"
ProxyPassReverseCookieDomain ipasvr.local iam.domain.com
RequestHeader edit Referer ^https://iam\.domain\.com/ https://ipasvr.local/
</Location>
内部域工作正常。但是,当我尝试从外部域访问它时出现错误:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /ipa/ui/test/data/ipa_init.json was not found on this server.</p> </body></html>
Cannot connect to the server, please check API accesibility (certificate, API, proxy, etc.)