cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Multi Website Configuration is not working

Magento 2 Multi Website Configuration is not working

 

I am trying to create a demo multiwebsite set up using magento 2.3.5 in local system using nginx .

 

My main site is http://www.myshop.com

and other website is supposed to be http://myshop1.myshop.com

 

After making following configuration,Whenever I am trying to open

http://myshop1.myshop.com,

It is redirecting to http://www.myshop.com

 

Please check and let me know if I am doing something wrong.

I am using this Link as reference for my setup.

 

upstream fastcgi_backend {
  server  unix:/var/run/php/php7.2-fpm.sock;
}

server {
  listen 80;
  server_name myshop.com www.myshop.com *.myshop.com *.myshop1.myshop.com;
  set $MAGE_ROOT /home/kitchenlogsnew/myshop;
  include /home/kitchenlogsnew/myshop/nginx.conf.sample;
}
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                           

 

.htaccess config.htaccess configThis is myshop1.myshop.com configThis is myshop1.myshop.com configThis is all stores configThis is all stores config