Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a CNAME entry:

static IN CNAME c.commondatastorage.googleapis.com.

and I was wondering whether it is possible to make an exception for it? an extra rule that when the URI is static.domain.ltd/default/ 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

1 Answer 1

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? –  Guy 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.