So I’ve been able to add more websites and access them using subdomains. With the Bitnami stack domain still configured at 192.168.15.159, I’ve added websites/stores/store views in Magento :
website1.mysite.mg – store code “website1”
website2.mysite.mg – store code “website2”
I’ve included entries in the host file of the host and guest OS:
The below article talks about adding code to the .htaccess file
It seems somewhat contradictory because the next article mentions adding the “SetEnvIf Host “ code to the .conf files in the Apache dir rather than the .htaccess file. Perhaps 1 article is a little bit older than the other.
I’ve added the “SetEnvIf Host” entries using the method’s described in the second link (Approach A).
All 3 sites load up fine.
192.168.15.159 – Default Site – store code “base”
website1.mysite.mg – website1 – store code “website1”
website2.mysite.mg – website2 – store code “website2”
Since I have all this working perfectly, I would like the Default site to be “mysite.mg” as well.
When I try to change the domain to “mysite.mg” using the below command, add entries in the host file, and add the “SetEnvIf Host” host code in the “/opt/bitnami/apache2/conf/vhosts/htaccess/Magento-htaccess.conf” file and restart Apache, I can see the top and bottom frame of the website load then I type “mysite.mg” in a browser, but it does not load. It times out. I have cleared cookies/site data.
sudo /opt/bitnami/configure_app_domain --domain mysite.mg
So it looks like the problem is just now with the main “base” Magento website. When I switch everything back to “192.168.15.159” it all works as described above. I should also note that the sub-domains still work when I change the configuration to “mysite.mg” Only the base website and admin page is not accessible.
Any help would be appreciated.