Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a subdomain hosted right now something like:

I need to point to that same subdomain. However, when I create this DNS entry: Record Type: CNAME Record Data: cdn-subdomain Record Value:

I get a 404 error not found when navigating to - ANY ideas what I'm doing wrong?

share|improve this question

migrated from Nov 1 '09 at 18:40

This question came from our site for professional and enthusiast programmers.

1 Answer 1

If you're getting a 404, your CNAME is working just fine. If the CNAME wasn't working, you'd get an error indicating that no server could be found.

You need to set up your web server to serve the content to both domains. In Apache, you'd use a ServerAlias directive to tell it that is an alias of

share|improve this answer
what can I do in windows server to resolve the problem? – Ashkan Mobayen Khiabani Sep 14 '14 at 12:32
@AshkanMobayenKhiabani Read the docs? I don't work with Windows Server. Key words would be "virtual host". – ceejayoz Sep 14 '14 at 13:39

Your Answer


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