I followed the steps on this tutorial to setup my multi-domain site, and its working fine, but now i want to setup my another site which has multi sites but currently I have single i.p address to access them all. I tried different tricks in httpd.conf, .htaccess and also changed site address in admin panel at site level but it did not work. How I can make them working with single ip address?
Any help would be highly appreciated.
My httpd.conf file
<VirtualHost *:80> DocumentRoot /var/www/ ServerName 220.127.116.11 </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/ ServerName 18.104.22.168/a </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/ ServerName 22.214.171.124/b </VirtualHost>
My .htaccess file
SetEnvIf Host 126.96.36.199 MAGE_RUN_CODE=base SetEnvIf Host 188.8.131.52 MAGE_RUN_TYPE=website SetEnvIf Host ^184.108.40.206 MAGE_RUN_CODE=base SetEnvIf Host ^220.127.116.11 MAGE_RUN_TYPE=website SetEnvIf Host 18.104.22.168/a MAGE_RUN_CODE=site_a SetEnvIf Host 22.214.171.124 MAGE_RUN_TYPE=website SetEnvIf Host ^126.96.36.199 MAGE_RUN_CODE=site_a SetEnvIf Host ^188.8.131.52 MAGE_RUN_TYPE=website SetEnvIf Host 184.108.40.206/b MAGE_RUN_CODE=site_b SetEnvIf Host 220.127.116.11/b MAGE_RUN_TYPE=website SetEnvIf Host ^18.104.22.168/b MAGE_RUN_CODE=site_b SetEnvIf Host ^22.214.171.124/b MAGE_RUN_TYPE=website
I tried ips like
1\.2\.3\.4 in .htaccess as well.
I also changed the site unsecure/secure urls to 126.96.36.199/a and 188.8.131.52/b but no gain.