Wonderfall / dockerfiles

Discontinued. Fork at your will.
Creative Commons Zero v1.0 Universal
391 stars 170 forks source link

Allows apps2 outside of root #264

Closed skjnldsv closed 6 years ago

skjnldsv commented 6 years ago

Fix #257

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

hoellen commented 6 years ago

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 commented 6 years ago

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

hoellen commented 6 years ago

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

skjnldsv commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

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

mwlczk commented 6 years ago

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