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

To use bit.ly pro, you need to make a CNAME entry pointing to cname.bit.ly

How does cname.bit.ly have to be configured in order to let this happen?

Updated for a more detailed explanation.

a.domain.com points to c.b.com a.domain.com simply needs a CNAME entry. c.b.com needs to actually serve the request. How should this server be configured to allow this to happen?

share|improve this question
add comment

2 Answers

The domain name doesn't need any particular configuration -- anyone can create a CNAME for any domain they own, pointing to any other domain name.

The server will presumably need to be configured to do the short URL expansion for bit.ly Pro paying customers, and block all other domain names that may be CNAMEd to cname.bit.ly by non-customers.

share|improve this answer
    
ok, but what server configuration allows for the server to let this happen? –  Horia Dragomir Jan 26 '11 at 16:20
    
It's not a simple server configuration; it's probably some proprietary software. You need to write software that will pick up the http Host: request header and then take whatever action you want depending on the value of that header. –  Mike Scott Jan 26 '11 at 16:24
1  
If what you want is simply to serve different content based on the hostname used to connect, then the mention of bit.ly was a bit of a misdirection. You need to do some research on Name Based Virtual Hosts. –  Mike Scott Jan 26 '11 at 16:26
add comment
up vote 1 down vote accepted

After parallel research, I found that a simple <VirtualHost *:80> in the .conf file suffices.

It was never about serving different content based on domain name. It's about serving the same content regardless of domain name (which I have no control over), hopefully without having to do something special for every new third party domain name that wants to point to mine.

share|improve this answer
add comment

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.