nginx代理tomcat
tomcat已经配置好访问如下
nginx配置文件如下
vim /usr/local/nginx/conf/
        server
    {
        listen      80;
        server_name  *********; 
        location / {
           proxy_pass http://localhost:9000;
        }
          proxy_set_header  X-Real-IP  $remote_addr;
        proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;
          proxy_set_header  Host  $http_host;
         }
再次访问不输入端口 如下
原文:http://865516915.blog.51cto.com/9037379/1865834