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

Run Nextcloud from Subdirectory #401

Open
somkun opened this issue Jul 27, 2018 · 5 comments

Comments

Projects
None yet
5 participants
@somkun
Copy link

commented Jul 27, 2018

How do you tell nextcloud that it's in a sub-directory? Currently each service on my machine is in its own docker instance, and I use Traefik to expose them to different sub-directories on my server:

mydomain/service1
mydomain/service2

Current Behaviour

all links are "/index.php/*"

Desired Behavior

all links are "/nextcloud/index.php/*"

@datenfahrt

This comment has been minimized.

Copy link

commented Jul 29, 2018

if I understood you correctly - you have to adjust your nextcloud configuration:

'overwritewebroot'

Look this:

https://docs.nextcloud.com/server/13/admin_manual/configuration_server/reverse_proxy_configuration.html#overwrite-parameters

regards

@somkun

This comment has been minimized.

Copy link
Author

commented Jul 30, 2018

This is what I was looking for. Is there a way to set this setting via docker, or do I need to modify my version of the image?

@udl

This comment has been minimized.

Copy link

commented Aug 6, 2018

Depending on how you run the docker container. If you mount your filesystem in /var/www/html, for example, you don't need to rebuild the container. You can find the config file in the mounted directory.

@lilarcor

This comment has been minimized.

Copy link

commented Aug 29, 2018

can you show us some example, I tried everything I could( 'overwritehost' => '', htaccess.RewriteBase' => , etc.), still failed.

@naramski

This comment has been minimized.

Copy link

commented Oct 27, 2018

I had a similar problem and I have created a fix for this issue (Pull request : #527) that contains the an ENV variable NEXTCOULD_OVERWRITEWEBROOT to help define "subdirectories".

Hope it helps,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.