自用nginx配置

3,037次阅读
没有评论

反代:

client_max_body_size 4096M;

gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
#gzip_http_version 1.0;

gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary off;
gzip_disable "MSIE [1-6]\.";

server {
    listen       80;
    server_name  localhost;
    location / {
            proxy_pass  http://192.168.100.2;
            proxy_set_header Accept-Encoding "";            
            proxy_set_header X-Forwarded-Proto  $scheme;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            #proxy_redirect     off;
            #add_header Front-End-Https on;
        }
}

https

待研究

正文完
 0
评论(没有评论)