Author Topic: Apache mod_proxy ssl to non ssl, login not working  (Read 2438 times)

Offline burner

  • Newbie
  • *
  • Posts: 1
Apache mod_proxy ssl to non ssl, login not working
« on: March 16, 2015, 07:12:38 AM »
Hello Together,
I have a problem to login, if i used mod_proxy from a non ssl site to roundcube on ssl.
I have installed roundcube on a subdomain with SSL:
​https://webmail.SSLDomain.com/
this work, no problems if user take this domain. But I want the same on other Domains without a SSL Certificate, so I use mod_proxy:
Code: [Select]
<VirtualHost *:80>
    ServerName webmail.DomainWithoutSSL.com
    ServerAdmin webmaster@DomainWithoutSSL.com
    ServerAlias webmail.DomainWithoutSSL.com

    SSLProxyEngine On
    ProxyPass / https://webmail.SSLDomain.com/
    ProxyPassReverse / https://webmail.SSLDomain.com/
    ProxyPassReverseCookieDomain webmail.SSLDomain.com webmail.DomainWithoutSSL.com
#   ProxyPassReverseCookiePath / /
    RedirectMatch ^/$ http://webmail.DomainWithoutSSL.com

    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
</VirtualHost>
But if a user want to login, the error REQUEST_ERROR_TOKEN will promt. Because $token is every time unequal $sess_tok in rcube.php line 1082. I can't found out why! Can you help me?
Thank you