Home > Back-end >  Nginx reverse proxy is successful, but CSS and js style load not to come out..
Nginx reverse proxy is successful, but CSS and js style load not to come out..

Time:10-06


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 path

CodePudding user response:

The relative path into an absolute path

CodePudding 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 load

CodePudding user response:

http://blog.csdn.net/name_is_wl/article/details/52958472

CodePudding 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 problem

CodePudding user response:

Open a browser debugging, see an error in the path where there is a problem

CodePudding user response:

Setting up a unified url prefix to reverse proxy, CSS and js files using the unified url prefix

CodePudding user response:

Directly from your website's domain name http://www./your js file path. Js
This can be loaded
  • Related