Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc-1895 - [OC 4.5RC1] Domain name is missing from the URL when SSL-Proxy is enabled #891

Closed
msrex opened this issue Dec 14, 2012 · 1 comment
Labels

Comments

@msrex
Copy link

msrex commented Dec 14, 2012

From http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1895

Unable to reproduce due to the lack of an SSL proxy.

Description:
Since this change f8eebcb has been introduced to OC 4.5RC1, I'm experiencing a problem where I receive an error message upon login when I have the SSL-Proxy enabled.

I use a minor modification to the code as described in the following post http://forum.owncloud.org/viewtopic.php?f=3&t=3841#p8707, which enables the SSL-Proxy on my host server (Host Europe). It was working without any issues until the above commit was made recently.

As I have indicated later in the same thread http://forum.owncloud.org/viewtopic.php?f=3&t=3841#p9014, I'm now redirected to an address whose domain name is missing for some odd reason when I access OC through SSL-Proxy. Say my OC is located at https://ssl.webpack.de/domain.com/owncloud, I am often (but not always) redirected to https://ssl.webpack.de/owncloud where the "domain.com" part is missing. This has repeatedly happened when, I, for instance, first login to OC (which can be successful) and create a new user, then logout and try to login as the newly created user. In this case, I am redirected to the URL without the domain part and am shown a "Page Not Found" error message.

Is the SSL-Proxy modification not compatible with the recent change committed to OC?

Reproduction steps:
After having modified the code as described here http://forum.owncloud.org/viewtopic.php?f=3&t=3841#p8707, create another user in OC and try to login with the new username. One is then redirected to an invalid URL whose domain name is missing from it.
#3 Comment posted by zirydy Oct 10, 05:37

Perhaps my problem has to do with the way OC handles the SSL-Proxy for shared hosting in general.

I'm not sure what is the status of this bug report, but it sounds very relevant to the problem I raised here:

http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-890

@DeepDiver1975
Copy link
Member

two addition config parameters are available since v4.5.3 to specify host and protocol:
https://github.com/owncloud/core/blob/stable45/config/config.sample.php#L33
overwritehost and overwriteprotocol

With them configured properly this issue should solvable.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants