Search code examples
amazon-web-servicesapachevirtualization

How to host two websites on AWS on Windows and Apache but only one site works


I have two sites we'll call Site1.com and Site2.com. I recently converted my VPS with another host to an image and imported the image into AWS. On the VPS, I was able to serve up both sites. Under AWS, whichever URL is accessed first, the second site will display the content and the URL will change to the first accessed site.

The setup is unique in that it is Windows running an apache web server (very old application). No changes to the conf files have been made since the conversion so I can only assume that it's something unique with the AWS setup.

Why is it doing this and more importantly how can I fix this so that I don't have to spin up a second instance.


Solution

  • Turns out the issue is with the instance type. When I bumped it up to medium (from small), the issue resolved itself. Go figure.