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

Web page not displayed properly , Nginx + fpm , and they are located on different servers #9975

Closed
foxinstone opened this issue Jun 24, 2018 · 3 comments

Comments

@foxinstone
Copy link

I have successfully installed NC13 on my ubuntu16.04 server, Every thing looks good, And I feel NC is an amazing software.
But there’s only one problem, when i use Nginx & PHP7.0-FPM, and they are located on different servers ,the web interface is wrong (Please see the screenshot, i know, it’s not configured, just example), Why is this?
But if i direct access the apache server, every thing is ok, i can finished the config by web page.
The funny thing is ,when i use Nginx & PHP7.0-FPM, The APP on android is working properly. even the web interface display is wrong.
Also,when i use simple nginx reverse proxy (not through FPM) , the web page is ok,but, The APP on android can not backup the contacts list(Other functions are normal).
You know, nginx+fpm (or nginx + php standard), and they are located on a different server models is of great significance. This model can be used to implement Intranet through…
Please help me make Web page display properly(use FPM), or make Android APP backup contacts properly(not use FPM).

error1

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #316 (nginx not displaying index), #9251 (server.scss for login pages), #766 (Different logo for login and user page), #3517 (Server Error; Unable to access through nginx), and #6734 (Nginx + NC12 having problems with small file uploads via web interface).

@foxinstone
Copy link
Author

foxinstone commented Jun 24, 2018

Thanks for your reply.
But i think my situation is quite different. if I strictly according to the official document (use FPM), the web page not displayed properly(But Android APP is OK) .But, if i use this config:

location / {
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-Forwarded-Proto $scheme;

  proxy_pass http://192.168.1.2/;   #Point the apache server, Nginx server's ip=192.168.1.1

}

The web page will be ok, At this point, just Android APP cannot back up contacts, other functions are normal. So I think my nginx server should not be a problem.

I've been tested, when nginx and Apache on same server, everything is functioning correctly. So the point is, nginx and Apache on different servers(two server), you need to pay attention to what?

For me, It is not necessary to use the FPM, direct reverse proxy is acceptable because the vast majority of functions are normal, And speed is not slower than using FPM. I just don't know why, can't back up the contacts on the APP ( "you don't permission......")?

@MorrisJobke
Copy link
Member

Web server and php need to run on the same server. So I will close this as an Setup issue.

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

No branches or pull requests

3 participants