I have an Ubuntu server hosting example1.com and example2.com. Both names are pointing to the same IP address.
I've configured Apache and it's working ok by using /var/www/example1 for the first and /var/www/example2 to the second domain.
What I would like to achieve next is to disallow all other service requests on both domain, except allowing SSH connections to example1.com.
What I would like to achieve next is to allow SSH connections only to example1.com.
How on earth is this done?