Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CNAME entry:

static IN CNAME

and I was wondering whether it is possible to make an exception for it? an extra rule that when the URI is CNAME is not applied?

I need to keep the same domain, but some content should be loaded from Google Storage, while some /default not.

If that is not possible, please advice. This is the only alternative I see so far:

I was thinking to use server_name ~^static\.(?P<domain>.+); instead with NGINX and then everything that does not contain /default/ redirect to Google server. Is that a valid solution? would that dramatically increase server load? Though this makes Google Storage kinda pointless.

The reason for having everything under static. is the same origin policy.

share|improve this question
up vote 7 down vote accepted


DNS is for name resolution, it has no relation to URIs in HTTP.

share|improve this answer
Any alternatives then? – Gajus Jun 9 '11 at 12:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.