1.Install nginx
2.Configure nginx.conf::
server{
using using using using through off through through out out through outce out out out outmb outallowce out out out out out out Out out of O- to
location / {
proxy_pass http://localhost:81; (points to server port 81 local project tomcat) proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; pg|jpeg |png|bmp|swf)$ (parse image)
location ~ .*.(js|css)$(js|css)
}
} }
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces nginx reverse proxy notes (1) integrating tomcat, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.