- Enable Virtual Hosts in httpd.conf
# Virtual hosts # Include conf/extra/httpd-vhosts.conf
Remove the “#” in the second line above and save and close the httpd.conf file
2. Add a redirection entry to your hosts file
3. Modify the httpd-vhosts.conf as noted in the example included in the file.
restart server.