Skip to content

Login failure on web interface, but reload main page successed #18602

Closed

Description

@huangyingjie

Steps to reproduce

  1. Build nextcloud server with docker image latest.
  2. Login with admin user on web interface.
  3. Path /login http status is canceled; And System log show Login failure, no app in context; My domain is https, but /login is http.
  4. But go to main page / in browser address, the page redirect to /apps/files/.

Expected behaviour

  1. login success, and redirect to /apps/files/, do not show error .
  2. /login's domain protocal should be 'https', not 'http'

Server configuration

Operating system: debian 10

Web server: nginx

Database: mysql

PHP version: 7.3

Nextcloud version: (see Nextcloud admin page) 17.0.2

Where did you install Nextcloud from: offical Nextcloud docker image

Activity

  1. kesselb commented on Dec 29, 2019

    @kesselb
    Contributor

    The reverse proxy is not listed as trusted_proxy or the headers are not forwarded. By default nextcloud:apache will replace the ip with the forwarded one in some scenarios.

    Please check nextcloud/docker#819 (comment) for all the details. tl;dr set overwriteprotocol and overwritehost.

  2. huangyingjie commented on Dec 29, 2019

    @huangyingjie
    Author

    awesome,thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions