I have an Apache2 server with multiple Virtual Hosts. One of the domains now wants SSL so they can do payment work with Stripe.
I have a separate IP for that domain (domain1) than is the main IP for server. (main server 99.99.99.88, separate IP 99.99.99.99)
Before I cut everything over I am trying to get it to work on port 80 (non-SSL) so that I know my virts are working.
When I go to the IP (99.99.99.99) it resolves to domain2 which is the default domain for the server, not domain1.
The Listen command in httpd.conf is Listen 80
Here's the relevant code for my vhosts.conf
NameVirtualHost *:80
NameVirtualHost 99.99.99.99:80
<VirtualHost 99.99.99.99:80>
ServerName domain1.com
DocumentRoot /var/www/vhosts/domain1.com/httpdocs
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/vhosts/domain2.com/html
ServerName www.domain2.com
</VirtualHost>
<VirtualHost *:80>
ServerName portal.domain2.com
DocumentRoot /var/www/vhosts/domain2.com/portal/public
</VirtualHost>
<VirtualHost *:80>
ServerName demo.domain2.com
DocumentRoot /var/www/vhosts/domain2.com/demo/public
</VirtualHost>
<VirtualHost *:80>
ServerName domain3.info
DocumentRoot /var/www/vhosts/domain3.info/html
</VirtualHost>
<VirtualHost *:80>
ServerName domain1.com
DocumentRoot /var/www/vhosts/domain1.com/httpdocs
</VirtualHost>
What do I need to do so that I can have domain1 be accessed when I hit the server using 99.99.99.99?