Simulate domain in test environment

I converting a website to WordPress in a test environment, accessing the server on localhost. But I want to simulate the ultimate domain.

First, in the apache httpd.conf file, set up a virtual host by adding the following lines:

<VirtualHost *:80>
DocumentRoot /xampp/htdocs/wordpress
 ServerName www.clarkperdue.com
</VirtualHost>
<VirtualHost *:80>
 DocumentRoot /xampp/htdocs
 ServerName localhost
</VirtualHost

This redirects the domain name to the correct directory on the local host server. It also resets the local host so other websites on the server can be accessed.

Second, use the hosts file to redirect windows when it encounters the domain. On Windows 7, the host file is located at: C:\Windows\System32\drivers\etc\hosts

Simply add the following line:

127.0.0.1  www.clarkperdue.com