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 recently purchased a VPS hosting and everything went well.

I tried to set a blog for my site as follows :

blog.trimhold.com

I created in DNS manager a Cname that points to : www.trimhold.com/blog .

Where the blog website is located.

but It isn't working for some reason.

Any suggestions?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The DNS, as the name says, deals with Domain Names, not URLs. You can't put a path (like /blog) in a CNAME.

You should put an A record for blog.whatever.com that points to the IP address of your server, and configure an HTTP Virtual Host on the server.

share|improve this answer
    
Ok, I just created a Host(A) record in my DNS Manager. –  Joseph Ghassan Sep 10 '10 at 7:54
    
My blog is hosted under wwwroot/blog. –  Joseph Ghassan Sep 10 '10 at 7:55
    
how can I link now : blog.trimhold.com to www.trimhold.con/blog ? –  Joseph Ghassan Sep 10 '10 at 7:56
    
Ok, Worked perfectly thanks –  Joseph Ghassan Sep 10 '10 at 9:14

Your Answer

 
discard

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.