Home > Backend Development > PHP Tutorial > nginx reverse proxy notes (1) Integrate tomcat

nginx reverse proxy notes (1) Integrate tomcat

WBOY
Release: 2016-07-29 09:15:21
Original
1133 people have browsed it

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.


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template