我试图加快HTTPs网站使用Apache作为代理和caching。 我有自己的ssl证书的代理,但都显示在未caching的请求日志。
我宁愿这样做与Apache,但如果他们是别的东西,我可以使用代理caching网站,这将是伟大的。
我的apache conf的相关部分在下面显示我当前的caching尝试。
谢谢
<VirtualHost *:443> ServerName www.fakegoogle.com SSLProxyEngine On SSLProxyCheckPeerCN Off ProxyPass / https://www.google.com/ timeout=30 Keepalive=On ProxyPassReverse / https://www.google.com/ ProxyAddHeaders Off DocumentRoot /var/www/ SSLEngine on SSLCertificateFile /etc/apache2/sslCert/fakegoogle.com.crt SSLCertificateKeyFile /etc/apache2/sslCert/fakegoogle.com.key SSLCertificateChainFile /etc/apache2/sslCert/fakegoogle.com.bundle.crt <IfModule mod_disk_cache.c> ProxyRequests on CacheRoot proxyCache CacheLastModifiedFactor 0.3 CacheEnable disk / CacheIgnoreHeaders None CacheRoot "/var/cache/mod_proxy" CacheDirLevels 3 CacheDirLength 5 CacheIgnoreCacheControl On CacheMaxFileSize 100000000 CacheIgnoreNoLastMod On CacheMaxExpire 1209600 CacheDefaultExpire 86400 CacheStoreNoStore On CacheIgnoreQueryString On CacheStorePrivate On </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 6 hours" </IfModule> CustomLog /var/www/logs/cached-requests.log common env=cache-hit CustomLog /var/www/logs/uncached-requests.log common env=cache-miss CustomLog /var/www/logs/revalidated-requests.log common env=cache-revalidate CustomLog /var/www/logs/invalidated-requests.log common env=cache-invalidate </VirtualHost>
我不知道这是你在找什么,但你试图看看谷歌mod_spdy? 它可以帮助你加快你的网站。