Heim  >  Fragen und Antworten  >  Hauptteil

Nginx speichert JS, CSS, Bilder und andere Informationen zwischen. Was ist das Implementierungsprinzip?

nginx speichert JS, CSS, Bilder und andere Informationen. Was ist das Implementierungsprinzip?

高洛峰高洛峰2684 Tage vor974

Antworte allen(1)Ich werde antworten

  • PHPz

    PHPz2017-05-16 17:25:04

    http://nginx.org/cn/docs/http/ngx_http_proxy_module.html
    比如Nginx后面有一台Tomcat服务器,项目部署在Tomcat服务器,Nginx把所有请求都proxy_pass转发给这台Tomcat服务器,Tomcat返回数据给Nginx,如果Nginx配置了proxy_cache,Nginx就会根据配置把Tomcat返回的js/css/img缓存到Nginx所在服务器的文件系统(proxy_cache_path)中.

    Antwort
    0
  • StornierenAntwort