Home >Backend Development >PHP Tutorial >nginx reverse proxy and static and dynamic separation
+ Tet -stream;
#tcp_nopush
Listen 80; server_name localhost; location / {T root html;
}
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.