I have an Apache reverse proxy that is serving content from another site over the Internet. There is an ssl cert between the user and the proxy and between the proxy and the origin server.
Apache benchmark consistently takes twice as long to retrieve the site from the proxy as directly from the origin server. I'm wondering what cache I could set up to speed this up.
I was trying varnish, but couldn't figure that out. I have this in as the proxy settings:
SSLProxyEngine On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /.well-known ! ProxyPreserveHost On SSLProxyVerify none SSLProxyCheckPeerCN off SSLProxyCheckPeerName off SSLProxyCheckPeerExpire off ProxyPass / https://freakingips.wpengine.com/ ProxyPassReverse / https://freakingips.wpengine.com/
You can see the problem here is that the proxyPass is already used to direct to the origin server, but that configuration would need to be used for the varnish cache, like so:
ProxyPass / http://127.0.0.1:80
So I'm wondering either how I can set varnish up on this configuration, or what other caching service might be better in this instance.