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 1.2.3.4
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/
ServerName 1.2.3.4/a
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/
ServerName 1.2.3.4/b
</VirtualHost>
My .htaccess file
SetEnvIf Host 1.2.3.4 MAGE_RUN_CODE=base
SetEnvIf Host 1.2.3.4 MAGE_RUN_TYPE=website
SetEnvIf Host ^1.2.3.4 MAGE_RUN_CODE=base
SetEnvIf Host ^1.2.3.4 MAGE_RUN_TYPE=website
SetEnvIf Host 1.2.3.4/a MAGE_RUN_CODE=site_a
SetEnvIf Host 1.2.3.4 MAGE_RUN_TYPE=website
SetEnvIf Host ^1.2.3.4 MAGE_RUN_CODE=site_a
SetEnvIf Host ^1.2.3.4 MAGE_RUN_TYPE=website
SetEnvIf Host 1.2.3.4/b MAGE_RUN_CODE=site_b
SetEnvIf Host 1.2.3.4/b MAGE_RUN_TYPE=website
SetEnvIf Host ^1.2.3.4/b MAGE_RUN_CODE=site_b
SetEnvIf Host ^1.2.3.4/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 1.2.3.4/a and 1.2.3.4/b but no gain.