What you want isn't too hard. As I think others have eluded too, your DNS provider should be mapped so that this.com and that.com both point to the IP of the server that will be hosting the two domains. Then you just gotta do the Apache config.
Ok, so your main apache2.conf you don't usually need to touch. instead, go into /etc/apache2/sites-available/
in that folder, you will need to create a config file for each vHost. so create /etc/apache2/sites-available/this
Code:
<VirtualHost *:80>
ServerName this.com
DocumentRoot /var/www/this/
</VirtualHost>
And make a config file for that.com, with the same syntax.
now you just need to enable the site so do a
and restart apache
Code:
/etc/init.d/apache2 restart
The End
Bookmarks