我没有主意,请帮忙。 我有一个.NET Core Web Api应用程序,该应用程序使用Open ID Connect向Azure进行身份验证。这在开发中可行,但是登台环境在apache2上运行了反向代理,这让我头疼。 在Apache上的配置如下:
<VirtualHost *:443>
ServerName internalservicestest.loqutus.be
ProxyPreserveHost On
RequestHeader Add X-Forwarded-Proto https
<Proxy balancer://intservtest>
BalancerMember http://192.168.5.59:8081 timeout=5
BalancerMember http://192.168.5.59:8082 timeout=5
ProxySet lbmethod=bytraffic
</Proxy>
ProxyPass / balancer://intservtest/
ProxyPassReverse / balancer://intservtest/
ErrorLog ${APACHE_LOG_DIR}/internalservicestest.loqutus.be-error.log
LogLevel debug
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/internalservicestest.loqutus.be/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/internalservicestest.loqutus.be/privkey.pem
</VirtualHost>
我可以使用Open ID Connect进行身份验证,但是我得到了:
最诚挚的问候