Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a virtual private server (VPS) with several services running on it -- most notably email and a Django web application with it's software stack (MySQL, Apache, etc.). The VPS has a domain name assigned to it and an SSL certificate for it's assigned IP address. I'd like to migrate the web application to Heroku using the same domain name. I'd like to leave the other services (email especially) hosted on my VPS.

Is this possible? Can I have the web application hosted on Heroku at, say, and have other services like email for for the same domain hosted on my VPS through some DNS trickery? Will I need to get a new SSL certificate?

share|improve this question
up vote 2 down vote accepted

Sure, and it doesn't require any "trickery".

Mail is directed towards your domain by way of DNS MX records. Just ensure that the MX records for your domain remain pointed at your VPS (it's likely that they already are configured to point to your VPS. If they're not, though, you need to create them), and then modify the A record for (and probably as well) to point to Heroku.

Regarding SSL, that's probably specific to Heroku. You'll need to look into how they handle certificate. It's likely that you'll need to have your existing cert re-issued after getting a CSR from Heroku.

share|improve this answer
Interesting. DNS records are one of those things I touch once or twice in a blue moon, so I have to re-educate myself on them each time. From what you say, it seems like a fairly routine change though . Good to know. Now, if only the migration was that easy... Thanks. – Erik Sep 6 '12 at 4:11
Yep, fairly routine indeed. Be sure to read up on this stuff, though, before you make any changes. If you run into something else specific you want help with, feel free to throw another question at SF. – EEAA Sep 6 '12 at 4:12

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.