aiCache Wiki‎ > ‎

aiCache Quick Configuration

This page describes basic aiCache configuration. It's common for all aiCache installations - regular, AWS, RightScale.

aiCache config - basics

Template 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 header
hostname   aicache.com       # Main host name
cname      www.aicache.com   # Alternative name (exact match)
wildcard   amazonaws.com          # Process all requests made to *amazonaws.com
For sites that can not be matched to any of hostname, cname or wildcard values in  configuration file, aiCache returns error "409 Webiste not found".

Next 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 caution
pattern .css simple 7d no_log # cache for a week, do not log in acces log file

Origins 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 server

For more configuration options see aiCache Administrator Guide.



Sign in  |  Recent Site Activity  |  Terms  |  Report Abuse  |  Print page  |  Powered by Google Sites