Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.21 KB | None | 0 0
  1. server
  2.  
  3.         {
  4.  
  5.         listen       80;
  6.  
  7.         server_name  hitaolanka.cootel.com;
  8.  
  9.         access_log  logs/hitao.log  main ;
  10.  
  11.          location ^~ /seller {
  12.  
  13.             if ($request_uri ~* (/seller/0|/seller/1|/seller/2|/seller/3|/seller/4|/seller/5|/seller/6|/seller/7|/seller/8|/seller/9)){
  14.  
  15.                rewrite ^/(.*)$ http://192.168.1.70:8888/$1 ;  }
  16.  
  17.                 proxy_pass  http://192.168.1.70:8888;
  18.  
  19.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  20.  
  21.                 proxy_set_header Host $host;
  22.  
  23.                 proxy_set_header X-Real-IP $remote_addr;
  24.  
  25.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  26.  
  27.                 proxy_set_header X-Forwarded-Proto https;
  28.  
  29.                 proxy_redirect     off;
  30.  
  31.         }
  32.  
  33.          location  ^~ /mpay  {
  34.  
  35.                 proxy_pass  http://192.168.1.70:8081;
  36.  
  37.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  38.  
  39.                 proxy_set_header Host $host;
  40.  
  41.                 proxy_set_header X-Real-IP $remote_addr;
  42.  
  43.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  44.  
  45.                 proxy_set_header X-Forwarded-Proto https;
  46.  
  47.                 proxy_set_header Cookie $http_cookie;
  48.  
  49.                 proxy_redirect     off;
  50.  
  51.         }
  52.  
  53.          location ^~ /source {
  54.  
  55.                 proxy_pass  http://192.168.1.70:8888;
  56.  
  57.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  58.  
  59.                 proxy_set_header Host $host;
  60.  
  61.                 proxy_set_header X-Real-IP $remote_addr;
  62.  
  63.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  64.  
  65.                 proxy_set_header X-Forwarded-Proto https;
  66.  
  67.                 proxy_redirect     off;
  68.  
  69.         }
  70.  
  71.       location ^~ /CooTalk-GateWay/groupManager!queryGroupInfoById.do {
  72.  
  73.                 access_log  logs/gateway.log  main;
  74.  
  75.                 proxy_pass http://192.168.1.70:9501;
  76.  
  77.                 proxy_read_timeout     2000s;
  78.  
  79.                 proxy_set_header        Host $host;
  80.  
  81.                 proxy_set_header        X-Real-IP $remote_addr;
  82.  
  83.                 proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  84.  
  85.                 proxy_next_upstream http_502 http_504 error timeout invalid_header;
  86.  
  87.       }
  88.  
  89.        location ^~ /group1/M00 {
  90.  
  91.             proxy_next_upstream http_502 http_504 error timeout invalid_header;
  92.  
  93.             proxy_cache http-cache;
  94.  
  95.             proxy_cache_valid  200 304 12h;
  96.  
  97.             proxy_cache_key $uri$is_args$args;
  98.  
  99.             proxy_pass http://fdfs_group1;
  100.  
  101.             expires 1d;
  102.  
  103.         }
  104.  
  105.         location ^~ /coobillbankgateway  {
  106.  
  107.                 access_log logs/coobillbankgateway.logs;
  108.  
  109.                 proxy_pass  http://192.168.1.70:9123;
  110.  
  111.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  112.  
  113.                 proxy_set_header Host $host;
  114.  
  115.                 proxy_set_header X-Real-IP $remote_addr;
  116.  
  117.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  118.  
  119.                 proxy_set_header X-Forwarded-Proto https;
  120.  
  121.         add_header From coobillbj.cootel.com;
  122.  
  123.         proxy_set_header Cookie $http_cookie;
  124.  
  125.             proxy_redirect     off;
  126.  
  127.         }
  128.  
  129.         location ^~ /balancetest  {
  130.  
  131.                 if ($request_uri ~* (00855383033443)){
  132.  
  133.                 proxy_pass  http://192.168.1.70:9123;
  134.  
  135.                    }
  136.  
  137.                 proxy_pass  http://192.168.1.70:11111;
  138.  
  139.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  140.  
  141.                 proxy_set_header Host $host;
  142.  
  143.                 proxy_set_header X-Real-IP $remote_addr;
  144.  
  145.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  146.  
  147.                 proxy_set_header X-Forwarded-Proto https;
  148.  
  149.                 add_header From coobillbj.cootel.com;
  150.  
  151.                 proxy_set_header Cookie $http_cookie;
  152.  
  153.                 proxy_redirect     off;
  154.  
  155.         }
  156.  
  157.          location ^~ /coobill_ip {
  158.  
  159.                 access_log logs/coobill_ip.logs;
  160.  
  161.                 proxy_pass  https://192.168.1.70;
  162.  
  163.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  164.  
  165.                 proxy_set_header Host $host;
  166.  
  167.                 proxy_set_header X-Real-IP $remote_addr;
  168.  
  169.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  170.  
  171.                 proxy_set_header X-Forwarded-Proto https;
  172.  
  173.                 proxy_redirect     off;
  174.  
  175.         }
  176.  
  177.        location ^~ /thirdpartyserver {
  178.  
  179.                 proxy_pass  http://192.168.1.70:9999;
  180.  
  181.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  182.  
  183.                 proxy_set_header Host $host;
  184.  
  185.                 proxy_set_header X-Real-IP $remote_addr;
  186.  
  187.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  188.  
  189.                 proxy_set_header X-Forwarded-Proto https;
  190.  
  191.                 proxy_redirect     off;
  192.  
  193.         }
  194.  
  195.         location ^~/userOrderDb {
  196.  
  197.                 proxy_pass  http://192.168.1.70:9501;
  198.  
  199.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  200.  
  201.                 proxy_set_header Host $host;
  202.  
  203.                 proxy_set_header X-Real-IP $remote_addr;
  204.  
  205.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  206.  
  207.                 proxy_set_header X-Forwarded-Proto https;
  208.  
  209.                 proxy_redirect     off;
  210.  
  211.         }
  212.  
  213.  
  214.  
  215.         location ^~ /orderGateway {
  216.  
  217.                 proxy_pass  http://192.168.1.70:9088;
  218.  
  219.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  220.  
  221.                 proxy_set_header Host $host;
  222.  
  223.                 proxy_set_header X-Real-IP $remote_addr;
  224.  
  225.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  226.  
  227.                 proxy_set_header X-Forwarded-Proto https;
  228.  
  229.                 proxy_redirect     off;
  230.  
  231.         }
  232.  
  233.         location ^~ /coomarts_ucs {
  234.  
  235.                 proxy_pass  http://192.168.1.70:8888;
  236.  
  237.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  238.  
  239.                 proxy_set_header Host $host;
  240.  
  241.                 proxy_set_header X-Real-IP $remote_addr;
  242.  
  243.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  244.  
  245.                 proxy_set_header X-Forwarded-Proto https;
  246.  
  247.                 proxy_redirect     off;
  248.  
  249.          }
  250.  
  251.         location ^~ /payOrder {
  252.  
  253.                 proxy_pass  http://192.168.1.70:8599;
  254.  
  255.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  256.  
  257.                 proxy_set_header Host $host;
  258.  
  259.                 proxy_set_header X-Real-IP $remote_addr;
  260.  
  261.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  262.  
  263.                 proxy_set_header X-Forwarded-Proto https;
  264.  
  265.                 proxy_redirect     off;
  266.  
  267.          }
  268.  
  269.                  location ^~ /order {
  270.  
  271.                 proxy_pass  http://192.168.1.70:8599;
  272.  
  273.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  274.  
  275.                 proxy_set_header Host $host;
  276.  
  277.                 proxy_set_header X-Real-IP $remote_addr;
  278.  
  279.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  280.  
  281.                 proxy_set_header X-Forwarded-Proto https;
  282.  
  283.                 proxy_redirect     off;
  284.  
  285.          }
  286.  
  287.                  location ^~ /orderSynchro {
  288.  
  289.                 proxy_pass  http://192.168.1.70:8599;
  290.  
  291.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  292.  
  293.                 proxy_set_header Host $host;
  294.  
  295.                 proxy_set_header X-Real-IP $remote_addr;
  296.  
  297.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  298.  
  299.                 proxy_set_header X-Forwarded-Proto https;
  300.  
  301.                 proxy_redirect     off;
  302.  
  303.          }
  304.  
  305.         location ^~ /home {
  306.  
  307.                 access_log logs/home.logs;
  308.  
  309.                 proxy_pass  http://192.168.1.70:8699;
  310.  
  311.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  312.  
  313.                 proxy_set_header Host $host;
  314.  
  315.                 proxy_set_header X-Real-IP $remote_addr;
  316.  
  317.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  318.  
  319.                 proxy_set_header X-Forwarded-Proto https;
  320.  
  321.                 proxy_redirect     off;
  322.  
  323.          }
  324.  
  325.         location  /home/getCategory {
  326.  
  327.                 access_log logs/homegetCategory.logs;
  328.  
  329.                 if ($request_uri ~* km_kh) {
  330.  
  331.                 proxy_pass http://192.168.1.70:9099;
  332.  
  333.                   }
  334.  
  335.                 proxy_pass  http://192.168.1.70:8699;
  336.  
  337.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  338.  
  339.                 proxy_set_header Host $host;
  340.  
  341.                 proxy_set_header X-Real-IP $remote_addr;
  342.  
  343.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  344.  
  345.                 proxy_set_header X-Forwarded-Proto https;
  346.  
  347.                 proxy_redirect     off;
  348.  
  349.          }
  350.  
  351.         location ^~ /goodsSearch {
  352.  
  353.                 proxy_pass  http://192.168.1.70:9210;
  354.  
  355.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  356.  
  357.                 proxy_set_header Host $host;
  358.  
  359.                 proxy_set_header X-Real-IP $remote_addr;
  360.  
  361.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  362.  
  363.                 proxy_set_header X-Forwarded-Proto https;
  364.  
  365.                 proxy_redirect     off;
  366.  
  367.          }
  368.  
  369.         location ^~ /images {
  370.  
  371.                 proxy_pass  http://192.168.1.70:8499;
  372.  
  373.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  374.  
  375.                 proxy_set_header Host $host;
  376.  
  377.                 proxy_set_header X-Real-IP $remote_addr;
  378.  
  379.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  380.  
  381.                 proxy_set_header X-Forwarded-Proto https;
  382.  
  383.                 proxy_redirect     off;
  384.  
  385.          }
  386.  
  387.                  location ^~ /goodsBrand {
  388.  
  389.                 proxy_pass  http://192.168.1.70:8499;
  390.  
  391.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  392.  
  393.                 proxy_set_header Host $host;
  394.  
  395.                 proxy_set_header X-Real-IP $remote_addr;
  396.  
  397.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  398.  
  399.                 proxy_set_header X-Forwarded-Proto https;
  400.  
  401.                 proxy_redirect     off;
  402.  
  403.          }
  404.  
  405.                  location ^~ /goodsAdmin {
  406.  
  407.                 proxy_pass  http://192.168.1.70:8499;
  408.  
  409.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  410.  
  411.                 proxy_set_header Host $host;
  412.  
  413.                 proxy_set_header X-Real-IP $remote_addr;
  414.  
  415.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  416.  
  417.                 proxy_set_header X-Forwarded-Proto https;
  418.  
  419.                 proxy_redirect     off;
  420.  
  421.          }
  422.  
  423.                  location ^~ /goods {
  424.  
  425.                 proxy_pass  http://192.168.1.70:8499;
  426.  
  427.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  428.  
  429.                 proxy_set_header Host $host;
  430.  
  431.                 proxy_set_header X-Real-IP $remote_addr;
  432.  
  433.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  434.  
  435.                 proxy_set_header X-Forwarded-Proto https;
  436.  
  437.                 proxy_redirect     off;
  438.  
  439.          }
  440.  
  441.                  location ^~ /goodsSeller {
  442.  
  443.                 proxy_pass  http://192.168.1.70:8499;
  444.  
  445.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  446.  
  447.                 proxy_set_header Host $host;
  448.  
  449.                 proxy_set_header X-Real-IP $remote_addr;
  450.  
  451.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  452.  
  453.                 proxy_set_header X-Forwarded-Proto https;
  454.  
  455.                 proxy_redirect     off;
  456.  
  457.          }
  458.  
  459.                  location ^~ /goodsRelease {
  460.  
  461.                 proxy_pass  http://192.168.1.70:8499;
  462.  
  463.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  464.  
  465.                 proxy_set_header Host $host;
  466.  
  467.                 proxy_set_header X-Real-IP $remote_addr;
  468.  
  469.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  470.  
  471.                 proxy_set_header X-Forwarded-Proto https;
  472.  
  473.                 proxy_redirect     off;
  474.  
  475.          }
  476.  
  477.                  location ^~ /releaseGoods {
  478.  
  479.                 proxy_pass  http://192.168.1.70:8499;
  480.  
  481.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  482.  
  483.                 proxy_set_header Host $host;
  484.  
  485.                 proxy_set_header X-Real-IP $remote_addr;
  486.  
  487.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  488.  
  489.                 proxy_set_header X-Forwarded-Proto https;
  490.  
  491.                 proxy_redirect     off;
  492.  
  493.          }
  494.  
  495.                  location ^~ /goodsSynchro {
  496.  
  497.                 proxy_pass  http://192.168.1.70:8499;
  498.  
  499.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  500.  
  501.                 proxy_set_header Host $host;
  502.  
  503.                 proxy_set_header X-Real-IP $remote_addr;
  504.  
  505.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  506.  
  507.                 proxy_set_header X-Forwarded-Proto https;
  508.  
  509.                 proxy_redirect     off;
  510.  
  511.          }
  512.  
  513.                  location ^~ /goodsEvaluate {
  514.  
  515.                 proxy_pass  http://192.168.1.70:8499;
  516.  
  517.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  518.  
  519.                 proxy_set_header Host $host;
  520.  
  521.                 proxy_set_header X-Real-IP $remote_addr;
  522.  
  523.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  524.  
  525.                 proxy_set_header X-Forwarded-Proto https;
  526.  
  527.                 proxy_redirect     off;
  528.  
  529.          }
  530.  
  531.                  location ^~ /cart {
  532.  
  533.                 proxy_pass  http://192.168.1.70:8499;
  534.  
  535.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  536.  
  537.                 proxy_set_header Host $host;
  538.  
  539.                 proxy_set_header X-Real-IP $remote_addr;
  540.  
  541.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  542.  
  543.                 proxy_set_header X-Forwarded-Proto https;
  544.  
  545.                 proxy_redirect     off;
  546.  
  547.          }
  548.  
  549.                  location ^~ /goodsCategory {
  550.  
  551.                 access_log logs/goodsCategory.logs;
  552.  
  553.                 if ($request_uri ~* km_kh) {
  554.  
  555.                 proxy_pass http://192.168.1.70:9999;
  556.  
  557.                   }
  558.  
  559.                 proxy_pass  http://192.168.1.70:8499;
  560.  
  561.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  562.  
  563.                 proxy_set_header Host $host;
  564.  
  565.                 proxy_set_header X-Real-IP $remote_addr;
  566.  
  567.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  568.  
  569.                 proxy_set_header X-Forwarded-Proto https;
  570.  
  571.                 proxy_redirect     off;
  572.  
  573.          }
  574.  
  575.          
  576.  
  577.         location ^~ /user {
  578.  
  579.                 proxy_pass  http://192.168.1.70:8799;
  580.  
  581.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  582.  
  583.                 proxy_set_header Host $host;
  584.  
  585.                 proxy_set_header X-Real-IP $remote_addr;
  586.  
  587.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  588.  
  589.                 proxy_set_header X-Forwarded-Proto https;
  590.  
  591.                 proxy_redirect     off;
  592.  
  593.          }
  594.  
  595.                  location ^~ /adminLogin {
  596.  
  597.                 proxy_pass  http://192.168.1.70:8799;
  598.  
  599.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  600.  
  601.                 proxy_set_header Host $host;
  602.  
  603.                 proxy_set_header X-Real-IP $remote_addr;
  604.  
  605.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  606.  
  607.                 proxy_set_header X-Forwarded-Proto https;
  608.  
  609.                 proxy_redirect     off;
  610.  
  611.          }
  612.  
  613.                  location ^~ /buyerLogin {
  614.  
  615.                 proxy_pass  http://192.168.1.70:8799;
  616.  
  617.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  618.  
  619.                 proxy_set_header Host $host;
  620.  
  621.                 proxy_set_header X-Real-IP $remote_addr;
  622.  
  623.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  624.  
  625.                 proxy_set_header X-Forwarded-Proto https;
  626.  
  627.                 proxy_redirect     off;
  628.  
  629.          }
  630.  
  631.         location ^~ /sellerLogin {
  632.  
  633.                 proxy_pass  http://192.168.1.70:8799;
  634.  
  635.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  636.  
  637.                 proxy_set_header Host $host;
  638.  
  639.                 proxy_set_header X-Real-IP $remote_addr;
  640.  
  641.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  642.  
  643.                 proxy_set_header X-Forwarded-Proto https;
  644.  
  645.                 proxy_redirect     off;
  646.  
  647.          }
  648.  
  649.         location ^~ /store {
  650.  
  651.                 proxy_pass  http://192.168.1.70:8899;
  652.  
  653.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  654.  
  655.                 proxy_set_header Host $host;
  656.  
  657.                 proxy_set_header X-Real-IP $remote_addr;
  658.  
  659.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  660.  
  661.                 proxy_set_header X-Forwarded-Proto https;
  662.  
  663.                 proxy_redirect     off;
  664.  
  665.          }
  666.  
  667.         location ^~ /refund {
  668.  
  669.                 proxy_pass  http://192.168.1.70:8599;
  670.  
  671.                 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  672.  
  673.                 proxy_set_header Host $host;
  674.  
  675.                 proxy_set_header X-Real-IP $remote_addr;
  676.  
  677.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  678.  
  679.                 proxy_set_header X-Forwarded-Proto https;
  680.  
  681.                 proxy_redirect     off;
  682.  
  683.           }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement