Error 403 - Forbidden 截图:
nginx代理 wso2esb 出现 Error 403 - Forbidden_第1张图片

关键配置:

        listen       80;
        listen       443 ssl;
                ssl_certificate   certs/214059490140944.pem;
        ssl_certificate_key  certs/214059490140944.key;
        ssl_session_timeout 5m;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;

                location ^~ /carbon
        {
        proxy_pass https://127.0.0.1:9443/carbon;
        proxy_set_header  Host  $host;
        proxy_set_header  X-Real-IP  $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        }

解决方法:
vim /repository/conf/tomcat/catalina-server.xml

compression="off"  //关闭压缩