core icon indicating copy to clipboard operation
core copied to clipboard

6.0.2 Login Issue

Open Boseley opened this issue 12 years ago • 13 comments

I have installed OwnCloud 6.0.2 from scratch and am facing a login problem from external locations. When I browse to my site, I am presented with the login page, enter my details and hit "log in" my browser tries to redirect to "http://localhost/index.php/apps/files" and obviously the page does not get displayed as I am external from the server. If I then hit the back button my files and folders all appear as expected and I can use the web client.

This issue has also been reported in the below links by others: http://forum.owncloud.org/viewtopic.php?f=26&t=20086 http://forum.owncloud.org/viewtopic.php?f=26&t=20092

Any help would be greatly appreciated, my windows client seems to sync ok though. Although I am still testing.

@ringmaster @karlitschek

Boseley avatar Mar 04 '14 11:03 Boseley

Have you tried setting the values to overwritehost, overwriteprotocol and overwritewebroot ? See http://doc.owncloud.org/server/6.0/admin_manual/config/Reverse_Proxy_Configurations.html?highlight=overwritehost#reverse-proxy-configurations

PVince81 avatar Mar 04 '14 11:03 PVince81

@PVince81 thanks for your reply, no I've not done that, it's not a setting I've come across before. Am I right in thinking that only applies when proxies are in play? Which they are not in the browser I am using or the location.

Boseley avatar Mar 04 '14 11:03 Boseley

@PVince81 I have just added your suggested changes and after logging in and out 4 or 5 times from 2 different locations it has been absolutely fine. Thank you so much for your time and assistance.

For those also having the problem please carry out as suggested above (for IIS):

Edit the config.php file in example location C:\inetpub\wwwroot\config\config.php Add the entries as shown below but changing to suit your site:

'owncloud.exampledomain.co.uk', 'overwriteprotocol' => 'http', 'overwritewebroot' => '', And see link provided by PVince81 for further information, my protocol is http as my site uses this but it could obviously be https instead, and my "overwritewebroot" is '' as my owncloud files are in the top level of the webroot. Thank you.

Boseley avatar Mar 04 '14 11:03 Boseley

@Boseley thanks for the update. These settings are not only for proxy situations but any situations where the host name / path of the server isn't the same as the one that must be used in the browser like in your case.

PVince81 avatar Mar 04 '14 11:03 PVince81

@PVince81 thanks for the extra information, I have updated the 2 mentioned owncloud forum threads above with links to this thread to help others, enjoy your day.

Boseley avatar Mar 04 '14 11:03 Boseley

The is caused by the new trusted domains feature.

blizzz avatar Mar 04 '14 12:03 blizzz

@blizzz it doesn't seem to case for that specific issue. Let's find out:

@Boseley what's the value of "trusted_domains" in your config.php ?

PVince81 avatar Mar 04 '14 13:03 PVince81

@PVince81

I've left it as defaults:

'trusted_domains' => array ( 0 => 'localhost', ),

Boseley avatar Mar 04 '14 13:03 Boseley

Ok, you should also put the name of your remote host name there as well (including port)

PVince81 avatar Mar 04 '14 13:03 PVince81

Confirmed.

Modifying config.php as per below solved this issue for me. Thanks!

'trusted_domains' => array ( 0 => 'localhost', 1 => 'my.url.com', ),

EzdineG avatar Mar 05 '14 01:03 EzdineG

Thanks for the info. CC @LukasReschke

PVince81 avatar Mar 05 '14 09:03 PVince81

i have the same issue but when put my server url in config.php ... i have a internal server error...any idea.. i use apache2

robertonunezc avatar Apr 04 '14 17:04 robertonunezc

most likely you did a mistake in modifying your config.php, have a look again (missing comma are put int the wrong place, etc.).

blizzz avatar Apr 07 '14 08:04 blizzz