
我們在 Windows 伺服器上設定了 Apache 2.4 反向代理。伺服器應透過反向代理將使用者重定向到其他伺服器並儲存 cookie。我們設定了它,除了客戶端上沒有設定cookie之外,它工作正常。
<VirtualHost _default_:443>
SSLEngine on
ServerName localhost:443
SSLCertificateFile "C:/Cert/targetdomain.com/fullchain1.pem"
SSLCertificateKeyFile "C:/Cert/targetdomain.com/privkey1.pem"
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyPassReverseCookieDomain "https://targetdomain.com" "http://localhost:8080"
ProxyPassReverseCookiePath "/" "/"
</Virtualhost>
有人能幫我嗎?