Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.04 KB

NGINX&JEMETER.md

File metadata and controls

38 lines (33 loc) · 1.04 KB

(nginx 配置)

nginx 下载地址 安装使用教程请自行百度/谷歌

    upstream my_server{
        server localhost:1111 weight=1 max_fails=2 fail_timeout=30s;
	    server 127.0.0.1:2222 weight=1 max_fails=2 fail_timeout=30s;
    }
    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

        location /myserver/ {
            proxy_set_header    Host    $host;
            proxy_set_header    X-Real-IP    $remote_addr;
            proxy_set_header    X-Forwarded-For    $proxy_add_x_forwarded_for;
            rewrite ^/myserver/(.*)$ /$1 break;
            proxy_pass    http://my_server;
        }
     # …… 其他默认配置省略
    }

( jemeter 请求地址)

jemeter 下载地址 安装使用教程请自行百度/谷歌

http://localhost/myserver/buy