{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/7552","labels_url":"https://api.github.com/repos/owncloud/core/issues/7552/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/7552/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/7552/events","html_url":"https://github.com/owncloud/core/issues/7552","id":28771800,"number":7552,"title":"OC_Request::serverProtocol(); is not returning https, though it should","user":{"login":"freshNfunky","id":1439992,"avatar_url":"https://avatars.githubusercontent.com/u/1439992?v=3","gravatar_id":"","url":"https://api.github.com/users/freshNfunky","html_url":"https://github.com/freshNfunky","followers_url":"https://api.github.com/users/freshNfunky/followers","following_url":"https://api.github.com/users/freshNfunky/following{/other_user}","gists_url":"https://api.github.com/users/freshNfunky/gists{/gist_id}","starred_url":"https://api.github.com/users/freshNfunky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freshNfunky/subscriptions","organizations_url":"https://api.github.com/users/freshNfunky/orgs","repos_url":"https://api.github.com/users/freshNfunky/repos","events_url":"https://api.github.com/users/freshNfunky/events{/privacy}","received_events_url":"https://api.github.com/users/freshNfunky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-03-05T08:08:08Z","updated_at":"2015-01-20T01:05:37Z","closed_at":"2014-08-19T22:08:39Z","body":"hi after setting up my OwnCloud insallation for HTTPS like described here:\r\nhttp://www.cy-man.de/?x=entry:entry131222-120247\r\ni got the problem with infinite redirect loops.\r\n\r\ninitially duscussed this in another issue:\r\nhttps://github.com/owncloud/core/issues/7445\r\n\r\nbut now it focuses more to the problem that:\r\n```php\r\n   OC_Request::serverProtocol();\r\n```\r\nis not returning https though the site is acessed via ssl reverse proxy:\r\nhttps://ssl-reverseproxy.tld/subdomain.mydomain.tld/\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/70588146","html_url":"https://github.com/owncloud/core/issues/7552#issuecomment-70588146","issue_url":"https://api.github.com/repos/owncloud/core/issues/7552","id":70588146,"user":{"login":"CharlyDelta","id":5437958,"avatar_url":"https://avatars.githubusercontent.com/u/5437958?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlyDelta","html_url":"https://github.com/CharlyDelta","followers_url":"https://api.github.com/users/CharlyDelta/followers","following_url":"https://api.github.com/users/CharlyDelta/following{/other_user}","gists_url":"https://api.github.com/users/CharlyDelta/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlyDelta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlyDelta/subscriptions","organizations_url":"https://api.github.com/users/CharlyDelta/orgs","repos_url":"https://api.github.com/users/CharlyDelta/repos","events_url":"https://api.github.com/users/CharlyDelta/events{/privacy}","received_events_url":"https://api.github.com/users/CharlyDelta/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T01:05:37Z","updated_at":"2015-01-20T01:05:37Z","body":"Sorry for double post. after now almost 5 hours I finally found the answer to this: Actually its just a misconfiguration of Apache. All I had to do is to add \"SetEnv HTTPS \"on\"\" to the VirtualHost like this:\r\n\r\n    <VirtualHost *:443>\r\n            ServerName cloud.sub.domain.tld\r\n            DocumentRoot /var/www/owncloud\r\n            ServerAdmin cloud@sub.domain.tld\r\n\r\n            SetEnv HTTPS \"on\"\r\n    </VirtualHost>"}}