清漆和SSL – 高请求时间

我正在尝试configuration一个Magento商店快速闪电,所以我想configuration清漆caching。 testing显示1ms请求和10ms响应是完美的。

然而,商店需要sslconfiguration。 目前的configuration是Varnish – > Apache。 我build立了SSL终止工作,但请求时间立即射击了大约400ms。 然后我尝试使用Nginx将https请求传递给清漆,结果类似。 只有我能想到的是完全切换到NGINX,但我完全猜测,希望在这里的一些build议。

这可以configuration为有更快的请求时间,类似于最初经历的1ms?

UPDATE

用Firefoxtesting显示不错的13ms请求时间不知道为什么Chrome是如此之慢。 这只是一个自我签名证书的开发目的,并显示不安全的铬我想知道这是否可能是一个问题在这里。

Apacheconfigurationtesting:

<VirtualHost *:443> ServerName test.domain.com ProxyPreserveHost On ProxyPass / http://127.0.0.1:80/ RequestHeader set X-Forwarded-Port "443" RequestHeader set X-Forwarded-Proto "https" SSLEngine On SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key #SSLCertificateChainFile /etc/apache2/ssl/example.com.chain </VirtualHost> 

可选的Nginxconfiguration:

 server { listen *:443 ssl; server_name test.domain.com; ssl on; ssl_certificate /etc/ssl/certs/apache-selfsigned.crt; ssl_certificate_key /etc/ssl/private/apache-selfsigned.key; location / { proxy_pass http://127.0.0.1:80; proxy_read_timeout 90; proxy_connect_timeout 90; proxy_redirect off; 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 https; proxy_set_header X-Forwarded-Port 443; proxy_set_header Host $host; } }