I am not sure if this is a bug or I just don't understand completely.

I am using aegir.
I created a site
I created an aliases to the site:
js.site.com
css.site.com
media.site.com

I do not redirect.

I have also enabled filecache.

Now I notice that if i goto media.site.com a filecache entry is created.

In addition, cdn starts serving pages from media.sites.com instead of site.com.

Again I am not sure if this is just a misconfiguration on my part.

Any insight would be greatly appreciated.

Comments

SocialNicheGuru’s picture

Title: Create CNAME alias and using filecache creates cache for each cname » Files served from cname instead of main domain if I create CNAME alias and use filecache
SocialNicheGuru’s picture

I don't know why this is happening:

3% of files served from http://media.site (7 files):

node/add/oa-space
sitemap
spaces
user/1/view
user/1/edit
user/logout
admin/structure/pages/nojs/operation/page/oa_sitemap/handlers/page_oa_sitemap_panel_context/content

Wim Leers’s picture

Status: Active » Closed (duplicate)
Related issues: +#1060358: CDN and SEO

I have also enabled filecache.

What's that?

Files being served from "the CDN domains" indeed is possible when you are using plain CNAMEs and didn't configure your webserver properly, i.e. if you didn't configure your webserver to only serve Drupal from "the main CNAME".

Will be fixed in #1060358: CDN and SEO, which is exactly about preventing that. Therefore, marking this as a duplicate.