A CentOS 7 web server is hosting one public domain, called mydomain.com. The same server also has a separate vpn that hosts two apps for private authorized/authenticated users only. Httpd is set up in a reverse proxy relationship in front of tomcat. All works perfectly using the config below.
How do I change the configuration below so that the server can also host other domains, domain2.com, domain3.com, and domain4.com for the public? Note that there are 3 instances of tomcat. Port 8011 points to the tomcat instance for the public site(s), while ports 8009 and 8010 point to tomcat instances that are used for private vpn apps.
Here is the code for /etc/httpd/conf.d/hostname.conf, which is marked as an include file in /etc/httpd/conf/httpd.conf:
<VirtualHost *:443>
ServerName www.bogusdomainforvpn.com
ServerAlias bogusdomainforvpn.com
ErrorLog /var/log/httpd/bogusdomainforvpn_com_error.log
CustomLog /var/log/httpd/bogusdomainforvpn_com_requests.log combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
ProxyPass / ajp://ip.address.of.server:8009/
ProxyPassReverse / ajp://ip.address.of.server:8009/
</VirtualHost>
Listen 444
<VirtualHost *:444>
ServerName www.bogusdomainforvpn.com
ServerAlias bogusdomainforvpn.com
ErrorLog /var/log/httpd/bogusdomainforvpn_com_error.log
CustomLog /var/log/httpd/bogusdomainforvpn_com_requests.log combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
ProxyPass / ajp://ip.address.of.server:8010/
ProxyPassReverse / ajp://ip.address.of.server:8010/
</VirtualHost>
<VirtualHost *:80>
ServerName www.mydomain.com
ServerAlias mydomain.com
ErrorLog /var/log/httpd/mydomain_com_error.log
CustomLog /var/log/httpd/mydomain_com_requests.log combined
ProxyPass / ajp://ip.address.of.server:8011/
ProxyPassReverse / ajp://ip.address.of.server:8011/
</VirtualHost>