Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

[nextcloud] - run in subfolder. example.com/nextcloud #183

Open

Description

@bhcopeland

Hi,

Thanks for building a awesome docker image. How do I go about running nextcloud in example.com/nextcloud ?

I am running Nginx locally and do a proxy reverse to the running container localhost:8888. When I access nextcloud in location block, it redirects back to example.com/login and fails. Problem is, if I set webroot in Nextcloud config.php to /nextcloud I get stuck in a redirect loop.

I have tried to use subfilter rules, but images and css get broken.

location /nextcloud/ { proxy_pass http://localhost:8888/; auth_basic off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Remote-Port $remote_port; proxy_set_header X-Forwarded-Proto $scheme; proxy_redirect off; }

My sub_filter loads login page but with no css. When I edit config.php (overwritewebroot) to include /nextcloud everything breaks..
proxy_set_header Accept-Encoding ""; sub_filter "http://server.domain/" "http://server.domain/nextcloud/"; sub_filter_once on;

Activity

  1. denogio commented on May 11, 2017

    @denogio

    i would like the same feature, since Windows and webdav only works if it is placed in a subfolder..

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions