{"id":1997,"date":"2009-01-21T05:45:48","date_gmt":"2009-01-21T12:45:48","guid":{"rendered":"http:\/\/css-tricks.com\/?p=1997"},"modified":"2009-01-21T07:15:27","modified_gmt":"2009-01-21T14:15:27","slug":"put-a-subdomain-on-a-different-server","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/put-a-subdomain-on-a-different-server\/","title":{"rendered":"Put a Subdomain on a Different Server"},"content":{"rendered":"

Over at Are My Sites Up<\/a> we have a blog<\/a> to keep users updated with new features, current issues and stuff like that. If, god forbid, the site were to go down, that blog wouldn’t do us a heck of a lot of good in keeping people up to date if it was on the same server.<\/p>\n

The solution is to simply keep the blog on a different server. But I didn’t want to have the blog feel<\/em> like some foreign location. So what I did was set up a subdomain of aremysitesup.com, blog.aremysitesup.com and point that domain at a different server. I had never done something like this before, so I thought I’d share how it was done.<\/p>\n

<\/p>\n

It’s pretty straightforward really, you just need to a new A record<\/a> for the domain at your domain registrant. I am using GoDaddy, so this is how it worked for me:<\/p>\n

    \n
  1. Log into account<\/li>\n
  2. Open the Domain Manager<\/li>\n
  3. Click the domain you are working with<\/li>\n
  4. Click “Total DNS Control and MX Records”<\/li>\n
  5. The first group in this area should be A (Host), on the top right of this bar, click Add New A Record<\/strong><\/li>\n
  6. Enter the host name, in my case it was “blog.aremysitesup.com”<\/li>\n
  7. Enter the IP address of the server you wish to point at.<\/li>\n<\/ol>\n

    \"\"<\/p>\n

    Then I just set up the new subdomain at the other host (Media Temple<\/a>, in this case) and that’s it!<\/p>\n

    \"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

    Over at Are My Sites Up we have a blog to keep users updated with new features, current issues and stuff like that. If, god forbid, the site were to go down, that blog wouldn’t do us a heck of a lot of good in keeping people up to date if it was on the […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[4],"tags":[],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":365614,"url":"https:\/\/css-tricks.com\/how-to-serve-a-subdomain-as-a-subdirectory\/","url_meta":{"origin":1997,"position":0},"title":"How to Serve a Subdomain as a Subdirectory","date":"May 6, 2022","format":false,"excerpt":"Let's say you have a website built on a platform that excels at design and it's available at example.com. But that platform falls short at blogging. So you think to yourself, \"What if I could use a different blogging platform and make it available at example.com\/blog?\" Most people would tell\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/05\/cloudflare-proxy.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":375184,"url":"https:\/\/css-tricks.com\/does-www-still-belong-in-urls\/","url_meta":{"origin":1997,"position":1},"title":"Does WWW still belong in URLs?","date":"December 5, 2022","format":false,"excerpt":"For years, a small pedantry war has been raging in our address bars. In one corner are brands like Google, Instagram, and Facebook. This group has chosen to redirect\u00a0example.com\u00a0to\u00a0www.example.com. In the opposite corner: GitHub, DuckDuckGo, and Discord. This group has chosen to do the reverse and redirect\u00a0www.example.com\u00a0to\u00a0example.com. Does \"WWW\" belong\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/11\/no-www-featured-image.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":186094,"url":"https:\/\/css-tricks.com\/get-started-web-design\/","url_meta":{"origin":1997,"position":2},"title":"How To Get Started in Web Design","date":"October 17, 2014","format":false,"excerpt":"Here's an answer to how to get started building websites that I fully endorse and isn't vague. This is going to cost a little money, just like learning to play the guitar requires buying a guitar and some accessories. This is also going to require a little time and mostly\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":365413,"url":"https:\/\/css-tricks.com\/setting-up-cloudfront-to-host-your-web-app\/","url_meta":{"origin":1997,"position":3},"title":"Setting Up CloudFront to Host Your Web App","date":"April 28, 2022","format":false,"excerpt":"In my last article, we went over how to set up a web app that serves chunks and bundles of CSS and JavaScript from CloudFront. We integrated it into Vite so that when the app runs in a browser, the assets requested from the app\u2019s root HTML file would pull\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/04\/aws-cloudfront-webapp.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":300565,"url":"https:\/\/css-tricks.com\/how-many-websites-should-we-build\/","url_meta":{"origin":1997,"position":4},"title":"How Many Websites Should We Build?","date":"December 27, 2019","format":false,"excerpt":"Someone emailed me: What approach to building a site should I take? Build a single responsive website Build a site on a single domain, but detect mobile, and render a separate mobile site Build a separate mobile site on a subdomain It's funny how quickly huge industry-defining conversations fade from\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/12\/rectangles-some-filled.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":344330,"url":"https:\/\/css-tricks.com\/hashnode-a-blogging-platform-for-developers\/","url_meta":{"origin":1997,"position":5},"title":"Hashnode: A Blogging Platform for Developers","date":"July 22, 2021","format":false,"excerpt":"Hashnode is a free platform for developer blogging. Say you\u2019ve just finished an ambitious project and want to write about 10 important lessons you\u2019ve learned as a developer during it. You should definitely blog it\u2014I love that kind of blog post, myself. Making a jump into the technical debt of\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-17-at-8.13.09-AM.png?fit=1200%2C886&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/1997"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=1997"}],"version-history":[{"count":4,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/1997\/revisions"}],"predecessor-version":[{"id":2097,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/1997\/revisions\/2097"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=1997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=1997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=1997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}