cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3-For Multi Website where should be create Symbolic links folder - Root folder or Pub path

Highlighted

Magento 2.3-For Multi Website where should be create Symbolic links folder - Root folder or Pub path

I just want to create multi-website, i read some links to guide me to create a subfolder and create symbolic links of app,pub,lib,var and copy index.php & .htaccess from root folder to a subfolder.

Here where i can create a subfolder Root folder or Pub folder?

This guide leads to create under Root folder => https://meetanshi.com/blog/setup-magento-2-multi-store/

This guide leads to create under Pub folder => https://magento.stackexchange.com/a/198257/57334

Which one should I follow?

And how to add my localhost URL to my Nginx configuration, most of the documents and online links teach only live URL.

 

My single store Nginx Configuration :

 

server {
listen 8087;
server_name gomart;
set $MAGE_ROOT /usr/share/nginx/html/gomart;
include /usr/share/nginx/html/gomart/nginx.conf.sample;
error_log /usr/share/nginx/html/gomart/gomart_error.log;
access_log /usr/share/nginx/html/gomart/gomart_access.log;
set $MAGE_RUN_TYPE website;
}

upstream fastcgi_backend2 {
server 127.0.0.1:9000;
}

 

 

2 REPLIES 2
Highlighted

Re: Magento 2.3-For Multi Website where should be create Symbolic links folder - Root folder or Pub

Hi @Aveeva 

Kindly refer below link for multi store website with NGINX:
https://magento.stackexchange.com/questions/195175/magento-2-how-to-configure-nginx-to-use-multiple-...

It may help you.

If issue resolve, please click on 'Kudos' & Accept as Solution!

Highlighted

Re: Magento 2.3-For Multi Website where should be create Symbolic links folder - Root folder or Pub

@Bhanu Periwal  Yes i already saw that, i have few questions in it, 

 

1) I don't want my website url like 

www.example.com/store1/

www.example.com/store2/

 

I need 

 

website one : www.gosmart.com

website two : www.grocery.gosmart.com

 

2) For Magento 2.3 is it necessary to create Symbolic links for Multi-Website?

 

3) How to configure Nginx with localhost url. (Most of the tutorial using live url) my localhost url : http://192.168.1.65:8080.

 

3) I am configured multi-website as per Magento docs, Base URL & Secure Base URL i just added my second website url:  http://192.168.1.65:8080/grocery How to add this into nginx configuration?

 

4) My current store Nginx Configuration :

 

server 
{
listen 8087; 
server_name gomart; 
set $MAGE_ROOT /usr/share/nginx/html/gomart;
include /usr/share/nginx/html/gomart/nginx.conf.sample; 
error_log /usr/share/nginx/html/gomart/gomart_error.log; 
access_log /usr/share/nginx/html/gomart/gomart_access.log; set $MAGE_RUN_TYPE website; 
}  
upstream fastcgi_backend2 
{ 
server 127.0.0.1:9000; 
}