zoukankan      html  css  js  c++  java
  • nginx多站路由配置tomcat

    server {
    listen 80;
    server_name 1.goal.cn;
    index index index.html index.htm index.jsp;
    root /www/server/tomcat/1/ROOT/;
    location / {
    proxy_pass http://127.0.0.1:8080;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    access_log /www/wwwlogs/1.access.log;
    }

    server {
    listen 80;
    server_name 2.goal.cn;
    index index index.html index.htm index.jsp;
    root /www/server/tomcat/2/ROOT/;
    location / {
    proxy_pass http://127.0.0.1:8080;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    access_log /www/wwwlogs/2.access.log;
    }

  • 相关阅读:
    os.remove some jpgs
    shutil.rmtree, os.path, delete sub-folders, format
    How to create folder
    valgrind
    gstream
    TP TN FP FN
    tensor flow
    接口中静态方法和默认方法
    JAVA基础09
    JAVA基础08
  • 原文地址:https://www.cnblogs.com/happyday56/p/9760318.html
Copyright © 2011-2022 走看看