Author Topic: Same installation, different URLs  (Read 7158 times)

Offline dariottolo

  • Newbie
  • *
  • Posts: 6
Same installation, different URLs
« on: August 27, 2012, 07:33:05 AM »
Dear All,

first of all, forgive my bad English. I will try to explain the issue, but let me know if it's not clear.

I run Roundcube 0.8.1 on my shared hosting.
The software is installed in:

/usr/home/myusername/public_html/roundcube which is reachable via browser as http://www.mydomain.com/roundcube and http://mail.mydomain.com (via a subdomain I set up that points to that directory).

My hosting provider provides me a shared ssl connection, which I would like to use.

The url for the https webiste is:

https://myusername.provider.com/roundcube/

Roundcube's login page loads correctly, but if I enter user and password I receive an error message in Italian, something like: "invalid request. No data has been saved".

Nothing is written in the error log.

Does anyone know what do I have to change in the config in order to be able to access the protected url?

Thank you in advance.

Regards.

Dario

Offline dariottolo

  • Newbie
  • *
  • Posts: 6
Re: Same installation, different URLs
« Reply #1 on: August 31, 2012, 11:49:04 AM »
Does anyone know if it is possible?

I remember that with previous version of Roundcube I could access the webmail through both URLs, I think up to 0.7

Thank you.


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: Same installation, different URLs
« Reply #2 on: August 31, 2012, 08:25:24 PM »
It should work, is there anything in your error log?

Offline dariottolo

  • Newbie
  • *
  • Posts: 6
Re: Same installation, different URLs
« Reply #3 on: September 01, 2012, 09:19:38 AM »
Thanks for your reply.

The only messages in error log are:

Code: [Select]
[28-Aug-2012 12:46:38 UTC] MDB2 Error: constraint violation (-3): _doQuery: [Error message: Could not execute statement]
[Last executed query: EXECUTE mdb2_statement_mysql_4b3007d49f323c4d8dca671a836de77cfb1cb52a9 USING @0, @1, @2]
[Native code: 1062]
[Native message: Duplicate entry 'b3dabf282488ee2748b8c5156f72dd2e' for key 1]

[28-Aug-2012 14:46:38 +0200]: DB Error: MDB2 Error: constraint violation Query: _doQuery: [Error message: Could not execute statement] [Last executed query: EXECUTE mdb2_statement_mysql_43c20d87fd5319878fb39dcd0e00a554a3ef50272 USING @0, @1, @2]
 [Native code: 1062]
 [Native message: Duplicate entry 'b3dabf282488ee2748b8c5156f72dd2e' for key 1]  in /usr/home/dariottolo/public_html/dilu/round/program/include/rcube_mdb2.php on line 727 (GET /?_task=mail&_action=check-recent&_mbox=INBOX&_list=1&_quota=1&_remote=1&_unlock=0&_=1346156783977)

But I am not sure it is related to this issue.

I am attaching a screenshot of the login page after I submit.
The text in Italian is the translation of:
Code: [Select]
$messages['invalidrequest'] = 'Richiesta non valida! Nessun dato salvato.';in messages.inc

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: Same installation, different URLs
« Reply #4 on: September 01, 2012, 11:47:15 AM »
The errors probably aren't related to this problem, are you using any plugins?

Offline dariottolo

  • Newbie
  • *
  • Posts: 6
Re: Same installation, different URLs
« Reply #5 on: September 01, 2012, 02:25:35 PM »
No, I am not using any plugin.

And I checked again the error file. Although I tried many times to login through the https website nothing was written in the logs.

I can attach the config file if it might help, or provide the address or create ftp user.

I am sure the https URL work, since I use it for another PHP script without issues.

Thanks again for your time.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: Same installation, different URLs
« Reply #6 on: September 02, 2012, 04:37:59 AM »
I'd would need to have a look at it to get a better idea of whats wrong, could you send me a test user, ftp access, and the ssl url?

Offline dariottolo

  • Newbie
  • *
  • Posts: 6
Re: Same installation, different URLs
« Reply #7 on: September 02, 2012, 07:05:39 AM »
Hi,

I sent you a private message.

Thank you.

Dario

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: Same installation, different URLs
« Reply #8 on: September 03, 2012, 01:40:42 AM »
In your RoundCube config <RC root>/config/main.inc.php you had set your domain in $rcmail_config['session_domain'] but because the https:// connection is on a different domain it was refusing the login data.

Offline dariottolo

  • Newbie
  • *
  • Posts: 6
Re: Same installation, different URLs
« Reply #9 on: September 03, 2012, 03:11:40 AM »
Thanks a lot for your time and help.

It works perfectly now.

Greetings from Italy

Dario