Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

First of all, am new to doing back-end server admin.. I have a main website being served on at certain IP. I have a blog address that lives on another IP, which was used on When a user typed in it would resolve to the site. Since coming on board (two months) they wanted me to bring the blog in house. So, I set up a wordpress install at

I would like (different ip) to resolve to but still using is this possible with Apache and mod_rewrite?

share|improve this question

migrated from Nov 14 '12 at 12:45

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

1 Answer 1

Easiest option would be to alter the DNS record for:, such that it points to the same IP address as:, you could simply make it a CNAME for the latter.

Then Either:

1) Enable name based VirtualHosts in Apache and set-up a new Apache Virtualhost section for, there's a section detailing this on the Apache site, and set it's document root to be the Wordpress /blog/ root.

2) If name based virtual hosting is already enabled alternatively add as a ServerAlias within the existing virtualhost, along with the following rule:

<VirtualHost *:80>

    RewriteEnging On
    RewriteCond %{HTTP_HOST}   [NC]
    RewriteRule ^$  /blog/  [L]          
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.