为什么nginx比apache的反向代理慢

到处都是我读的,nginx比apache快得多,特别是作为反向代理。 对我来说,它完全相反,我不能确定为什么。 我做错了吗?

对于一个简单的请求,用apache我得到了一个45毫秒的时间与Nginx的80毫秒 。 几乎是时间的两倍。

检查浏览器和“ab -n1000 -c5 https://myddomain.de ”

Apache 2.4.10

Nginx 1.9.10

相关的Apacheconfiguration部分:

<VirtualHost *:443> ServerName mydomain.de SSLProxyEngine On SSLProxyVerify none SSLProxyCheckPeerCN off SSLProxyCheckPeerName off ProxyPass / https://myipaddress:8443/prod/public/ ProxyPassReverse / https://myipaddress:8443/prod/public/ SSLEngine on SSLCertificateFile /blablcert.pem SSLCertificateKeyFile /blablaprivkey.pem </VirtualHost> 

Nginxconfiguration:

 server { # SSL configuration # listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate /blablacert.pem; ssl_certificate_key /blablaprivkey.pem; ssl_dhparam /etc/nginx/ssl/dhparam.pem; ssl on; server_name mydomain.de; location / { 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_set_header X-Forwarded-Proto $scheme; proxy_pass https://myipaddress:8443/prod/public/; proxy_read_timeout 90; } }