split (Forum tag)http://www.turnkeylinux.org/forum/term/428/0/feed
enMultiple Host Setup for Magento?http://www.turnkeylinux.org/forum/support/20110305/multiple-host-setup-magento
<p>
I am trying to get my Magento install to respond variably to different &quot;host&quot; calls.</p>
<p>
Domain1.com&nbsp; is working as needed</p>
<p>
Magento however will host multiple Websites and Store Views but the &quot;understanding&quot; of the Host Call is needed.</p>
<p>
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).&nbsp;</p>
<p>
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.</p>
<p>
I have tried to set up a Virtual Host in Webmin with the name of Domain2.com pointing to the Root Magento Folder.&nbsp; This does not seem to do what I am looking for - at least not yet.</p>
<p>
I am working behind a &quot;firewall&quot; - in the DMZ (Pix 515) and I do notice that Linux often is not &quot;aware&quot; of a &quot;fully qualified domain name&quot;&nbsp; (not sure how to set this correctly)... I see this variably during startup and shutdown.&nbsp; 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.&nbsp; There are several variations on Hosts that I would like to set up.&nbsp; I have done this before without problem in CPanel hosted installs.</p>
<p>
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:&nbsp;</p>
<pre>
<a href="http://www.webmin.com/vdownload.html" rel="nofollow">http://www.webmin.com/vdownload.html</a></pre>
<p>
Also the following link has a good explanation of the situation:</p>
<pre>
<a href="http://doxfer.webmin.com/Webmin/Name-BasedVirtualHosting" rel="nofollow">http://doxfer.webmin.com/Webmin/Name-BasedVirtualHosting</a></pre>
<p class="rteindent1">
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!&nbsp;</p>
<p>
Based on the following (about fully qualified domain names) it looks like perhaps the &quot;Magento&quot; 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:&nbsp;</p>
<pre>
<a href="http://www.virtualmin.com/documentation/installation/automated#fqdn" title="http://www.virtualmin.com/documentation/installation/automated#fqdn" rel="nofollow">http://www.virtualmin.com/documentation/installation/automated#fqdn</a>
</pre>
<p>
thanks in advance for thoughts and help.</p>http://www.turnkeylinux.org/forum/support/20110305/multiple-host-setup-magento#commentsSupportapachehostmagentosplitwebminSat, 05 Mar 2011 16:39:21 +0000L. Arnold2109 at http://www.turnkeylinux.org