PMP ,专注于WEB功能测试、性能测试、安全测试的研究,从事全面质量管理工作。曾任多家公司测试经理、测试主管。在电子政务、银行、电商、跨境电商、直播电商领域工作多年,曾获得某龙头集团公司公测一等奖,曾任职某头部直播电商公司测试团队负责人,具有业务敏感性,擅长从0到1搭建测试团队,具有海外工作经历,以及质量管理体系搭建。邮箱:89233502@qq.com

nginx代理配置代码

上一篇 / 下一篇  2013-04-10 17:52:40 / 个人分类:安全测试

#user  nobody;
worker_processes  1;
error_log  logs/error.log;
pid        logs/nginx.pid;
events {
    worker_connections  4096;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
access_log  logs/access.log  main;
    sendfile        on;
resolver 202.106.0.20;
    keepalive_timeout  65;
    server {
        listen       x;
        access_log  logs/host.access.log  main;
location / {
sub_filter 'X.x.x.x' 'demo.testfire.net';
sub_filter_once off;
proxy_set_header Accept-Encoding "";
proxy_pass http://x.x.x.x:x$request_url;
}
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
}
}

TAG:

 

评分:0

我来说两句

Open Toolbar