Skip to main content

Magento 2 : Multiple website setup in localhost

I am trying to create multi websites in Magento 2 in local environment with XAMPP on Windows operating system 10.

I followed this tutorial : http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_apache.html.

Created multi websites in the admin, changed the base url of each website in the configuration (Stores->Configuration->Web) and specified the virtual hosts in the file C:\xampp2\apache\conf\extra\httpd-vhosts.conf like below attached screenshot Screenshot of Apache Virtual Host configuration file

Then specified the base URLs in the host file like follows:

127.0.0.1 french.mysite.mg
127.0.0.1 german.mysite.mg

I restarted the Apache server but none of the created websites are loading. Can you please correct me if I am missing anything?

S.Venky
  • 115
  • 1
  • 2
  • 13