Sub_host Testing

The following example show how to create a server with a different Domain name to be used to test aiCache without requiring a local change of host file

Customer: We are trying to get our aiCache instance to become http://cache.xyz.com.  We would like when we make a request to http://cache.xyz.com that we get back results from http://www.xyz.com

aiCache Support: This can be done using the "sub_host" function. We need to modify the existing aicache.cfg

aiCache Support: Make sure you have a DNS entry for cache.xyz.com that points to the aiCache IP Address.

Customer: Okay DNS entry is in place to point cache.xyz.com to the IP address of the server running aiCache

aiCache Support:  Add "sub_hostname www.xyz.com"

aiCache Support: Effectively, you'd go to it as "cache.***" but aiCache would fill against the origin with the rewritten header of "www.xyz.com"

aiCache Support: This way everyone is fooled and happy as long as all the links are relative.

aiCache Support: Below that, add the www back

aiCache Support: "sub_hostname www.xyz.com"

aiCache Support: Without the quotes

aiCache Support: hostname cache.xyz.com            # MUST CHANGE to your own hostname

cname   zyx.com.com
cname   www.xyz.com
sub_hostname www.xyz.com

Customer: and it works!

Please find more details on this in the Admin guide linked on the left.

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