This page describes basic aiCache configuration. It's common for all aiCache installations - regular, AWS, RightScale. aiCache config - basicsTemplate config file can be downloaded here and provides a good starting point. You'd still need to manually edit a few setting, to match your installation requirements.First of all, you'd need to set website name. Find "website" section in the example configuration file and edit it. For example: website # Section headerhostname aicache.com # Main host namecname www.aicache.com # Alternative name (exact match)wildcard amazonaws.com # Process all requests made to *amazonaws.comNext you need to set caching rules. Effectively, you tell aiCache that when a request's URL matches a string, then the response could be cached for certain amount of time. Match could be exact, partial or regular expression-based. Regexp patterns are most powerful pattern matching mechanism. Few quick examples: pattern \.php regexp 1m # cache for 1 minute, cache dynamic files with cautionpattern .css simple 7d no_log # cache for a week, do not log in acces log fileOrigins are your primary application servers, which aiCache accelerates. You must add at least one. origin 74.125.67.100 80 # Google server as testing origin, replace it with your serverFor more configuration options see aiCache Administrator Guide. |