Setup a catch all domain

I needed to setup a catch all for one of my clients domains. This is what I needed to happen:

If user typed in an incorrect sub domain for that did not exist I needed it
to redirect them to 

For example: if they type in it will send the user

Here is what I did to accomplish this: 

Step 1: Added an A record to the domain zone of * and had it point it to SERVERIPADDRESS.

Step 2: Add ServerAlias *  to the httpd.conf file located in/usr/local/apache/conf/

Leave a reply