I am trying to get my Magento install to respond variably to different "host" calls.
Domain1.com is working as needed
Magento however will host multiple Websites and Store Views but the "understanding" of the Host Call is needed.
I have set Domain2.com to resolve to the same IP, and the first view of the site shows the home page of Domain1.com (with the URL of Domain2.com).
However, because I have set Domain2.com to only show a select set of products, I can see immediately that the host response is not working with the display of Domain1.com and subsequent links going to Domain1.com and domain1 URLs.
I have tried to set up a Virtual Host in Webmin with the name of Domain2.com pointing to the Root Magento Folder. This does not seem to do what I am looking for - at least not yet.
I am working behind a "firewall" - in the DMZ (Pix 515) and I do notice that Linux often is not "aware" of a "fully qualified domain name" (not sure how to set this correctly)... I see this variably during startup and shutdown. I will try a PIX HOST entry next to see if that helps but would like it if this could all be done through WebMin. There are several variations on Hosts that I would like to set up. I have done this before without problem in CPanel hosted installs.
A google search on the subject showed this link for Virtualmin in Webmin that seems promising, but I would like to be sure I proceed carefully:
Also the following link has a good explanation of the situation:
In the real world, it is rare to only operate one website on a machine. For all but the most demanding websites, it would be a waste of resources to do so, because a single modest computer can serve hundreds or thousands of web requests every minute without much effort. It would also be a waste of the finite IP space on the Internet, as there is a fixed number of IP addresses available and large swaths of them are already in use. To solve both problems Apache provides a feature known as name-based virtual hosts. With name-based virtual hosts, you may serve hundreds or thousands of websites, each with their own domain name, from a single machine running on a single IP!
Based on the following (about fully qualified domain names) it looks like perhaps the "Magento" Host name that TKL sets up should be changed to its actual domain name (via Apache in Webmin?) -- but where to from there, and also, is VirtualMin even needed if the Virtual Hosts can be properly configured in Apache already:
thanks in advance for thoughts and help.