I have setup Magento 2 in WAMP stack.
I have created two virtual hosts.
- magento230.com
wateroff-test.net
# magento230.com <VirtualHost *:80> ServerName magento230.com ServerAlias www.magento230.com DocumentRoot "C:/wamp/www/magento230" <Directory "C:/wamp/www/magento230"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost> # wateroff-test.net <VirtualHost *:80> ServerName wateroff-test.net ServerAlias www.wateroff-test.net DocumentRoot "C:/wamp/www/magento230" SetEnv MAGE_RUN_CODE "wateroff_net" SetEnv MAGE_RUN_TYPE "website" <Directory "C:/wamp/www/magento230"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
Now created two websites in Magento admin.
- default website
- wateroff website
Wateroff website configuration in admin.
Website name - Water Off (wateroff.net)
Website code - wateroff_net
Default store - Wateroff store
Store Information
Store name - Water Off Store
Store code - water_off_store
Root Category - Water off
Default Store View - US-English(WF)
Store View Information
Name - US-English(WF)
Code - wateroff_us
Status - enabled
When I run url http://magento230.com/ its working fine and http://magento230.com/customer/account/create/ working fine.
BUT
When I run url http://wateroff-test.net/ its not working fine and http://wateroff-test.net/customer/account/create/ gives error like This site can’t be reached.
When i see issue in console it gives me same error for all css and js.
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
I already run below command in same manner.
php bin/magento cache:flush
php bin/magento setup:upgrade
php -dmemory_limit=5G bin/magento setup:static-content:deploy -f
What is the issue here I don't know.
Please help me.
127.0.0.1 magento230.com
and127.0.0.1 wateroff-test.net