Roundcube Community Forum

 

MySQL connection problem with http / https

Started by H T D, September 19, 2010, 09:28:22 AM

Previous topic - Next topic

H T D

Hello.

// Don't read any further - I've solved the problem, the solution was obvious. DB doesn't care if you use https or not. Admin has copied RC to another dir and changed the DB password in config :) That's all. No magic. Roundcube rocks. My boss installed it to company domain after trying out :) If anyone's interested what's the deal with that https - the domain is configured to handle all https requests via separate config, so my domain pointed to another dir, which "accidentaly" had another RoundCube in it :)  Definately - the admin I am not. //

...

I've set up roundcube a couple of months ago. It worked. I'm not the server's admin, but I have full access. Admin takes care of the server, I access it only to make sites work.

The server has it's own domain, associated with self signed ssl certs. If I install certs on local machine it doesn't complain about https connection. So far so good. Let's call this domain A.

I've set up roundcube site on my own, private domain, let's call it B.

http://B worked. Logon screen appeared. As expected, I didn't want to use https.

https://B worked too - but with ugly warnings from browsers which complained the site's certificate is registered for domain A, not B.

Now http:://B doesn't work. Something's changed and I don't know what. Now I get "DATABASE ERROR: CONNECTION FAILED!". If I use https://B - all is fine (except warnings). I tried to change privileges of user roundcube in database from localhost to % - but it didn't help (so I reverted it to localhost, since it's safer like that).

I don't have a clue what to do. How can it matter if I access it with http or https? Boths URLs point to the same directory. BTW, roundcube and database are on the same host.

I could make a self signed certificate for my domain, and then force to use https in roundcube's confuration, but it's not the point. The point is it worked without https before and it doesn't now. Any clues why?