Home  >  Article  >  Backend Development  >  nginx reverse proxy and static and dynamic separation

nginx reverse proxy and static and dynamic separation

WBOY
WBOYOriginal
2016-08-08 09:24:37993browse

+ Tet -stream;

          #tcp_nopush                                                                                 
Listen 80; server_name localhost; location / {T root html;

index index.html index.htm;

}

error_page 500 503 504 /50x.html ;

local ~ .php $ {p proxy_pass http://test; It is wrong not to add /http://test/ after it
}
location ~ .*.(html|htm|gif|jpg|jpeg|bmp|png|ico|txt|js|css }
The above introduces nginx reverse proxy and dynamic and static separation, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn