Just finished to configure nginx reverse proxy, and also can redirect page, but turn the last page js and CSS styles could not load!! How to solve, consult a great god,
CodePudding user response:
Configuration file has a specified pathCodePudding user response:
The relative path into an absolute pathCodePudding user response:
What's the matter with your static files configuration,CodePudding user response:
Can you tell me the solution? I also am a reverse proxy cluster, then the machine access server has no problems with port access no problem, other machines can appear js, CSS styles to loadCodePudding user response:
http://blog.csdn.net/name_is_wl/article/details/52958472CodePudding user response:
Should be the problem of relative path,CodePudding user response:
Put the static files in Nginx server, static resource access directly to obtain by Nginx, dynamic request and forwarded to the web server,CodePudding user response:
The reverse proxy, contextpath best consistent, otherwise there will be a problemCodePudding user response:
Open a browser debugging, see an error in the path where there is a problemCodePudding user response:
Setting up a unified url prefix to reverse proxy, CSS and js files using the unified url prefixCodePudding user response:
Directly from your website's domain name http://www./your js file path. JsThis can be loaded