i have created subdomains for my main site .

like cdn1.abc.com cdn2.abc.com cdn3.abc.com

and all pointed to / . but when i try to use cdn1.abc.com in url .. it does not work.. it should work rite. anything else i have to do?

link|improve this question
What are you using to manage your subdomains? – William Jun 30 '10 at 17:16
2  
and which web server? – Eric Petroelje Jun 30 '10 at 17:18
@Eric Petroelje - apache server and godaddy account – pradeep Jun 30 '10 at 17:23
feedback

migrated from stackoverflow.com Jul 1 '10 at 3:22

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

2 Answers

With your virtual host settings, you need to add a ServerAlias, sort of like this:

<VirtualHost *:80>
        ServerName abc.com
        ServerAlias cdn1.abc.com cdn2.abc.com cdn3.abc.com

You could also do "*.abc.com" on that line instead, if you wanted to allow all subdomains.

link|improve this answer
feedback

You need to setup Apache to serve your files for all of the subdomains.

link|improve this answer
@SLaks - it says Server not found error – pradeep Jun 30 '10 at 17:30
@SLaks - godaddy provides a interface to create subdomains. then also i need to do apache configuration.. can u just show me the apache code for it? – pradeep Jun 30 '10 at 17:31
feedback

Your Answer

 
or
required, but never shown

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