我在apache2 2.4.6版本中启用了cache和cache_disk模块。
我无法将我的网址及其内容缓存到目录中,我的apache配置代码为:
ServerAdmin webmaster@localhost
ServerName mysite.local
ServerAlias *
ProxyRequests off
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ProxyPreserveHost on
LoadModule cache_module modules/mod_cache.so
<IfModule mod_cache.c>
LoadModule cache_disk_module modules/mod_cache_disk.so
<IfModule mod_cache_disk.c>
CacheRoot /var/www/mysiteCache/
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
</IfModule>
# When acting as a proxy, don't cache the list of security updates
CacheDisable http://security.update.server/update-list/
</IfModule>
请告诉我如何缓存我的网址数据?
谢谢, 维杰