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

Allows apps2 outside of root #264

Closed
wants to merge 2 commits into from
Closed

Conversation

skjnldsv
Copy link

@skjnldsv skjnldsv commented Nov 9, 2017

Fix #257

I'm not a nginx expert. But this works on my dev env.

@hoellen
Copy link
Contributor

hoellen commented Nov 9, 2017

I tried this on my environment, but I can't get it to run.
My apps2 folder is at /apps2/
So I changed your root /srv/http/; to root /;
But I still get the error message and the css can't be load.
Why you choose the root location to /srv/http/? Can you give some help?

@skjnldsv
Copy link
Author

skjnldsv commented Nov 9, 2017

@hoellen I'm an idiot, I forgot to edit! :) Let me check.

@hoellen
Copy link
Contributor

hoellen commented Nov 9, 2017

@skjnldsv Thanks, but it still doesn't work for me. Works it with 12.0.3 or need I a special branch?

@skjnldsv
Copy link
Author

skjnldsv commented Nov 9, 2017

@hoellen I added the basic solution used from a basic install, I don't use docker.
@Wonderfall will need to take a look.

@David-Development
Copy link

Thanks for working on this. I tried this solution but it doesn't work for me either. How is the nginx config going to solve the "ResourceLocator can not find a web root" messages in nextcloud? I still receive the error messages in the log. However my browser does not show any urls that are not reachable. So I'm wondering if this is an issue that can be solved by reconfiguring the nginx or if this is something internally in the nextcloud server?

@skjnldsv
Copy link
Author

Nginx can't serve a file outside of the webroot, so it's more than a nextcloud issue! :)

@mwlczk
Copy link

mwlczk commented Nov 15, 2017

Hi, this didn't solve the problem for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants