2

Where is an error in my following steps for creating Multi Website Store ::

Steps :-

  1. Main website Path : usr/share/nginx/html/giri

    • Contains all magento files
    • Configuration in nginx.conf.sample for Multi-Website
    • nginx.conf.sample -> https://justpaste.it/97yki (code)
  2. Multi-Website Path : usr/share/nginx/html/giri/grocery

    • Created subfolder inside the root folder along with symbollice linksof app, lib, pub, var and copy index.php & .htaccess from root folder to subfolder
  3. Inside the subfolder Symbolic Liks:

  4. Nginx Setup (Not sure right)

  5. Site-Available setup (Not sure right)

Url : http://192.168.1.64:8087/grocery (or) http://192.168.1.64:8087/gomart/grocery 404 error.

zus
  • 165
  • 2
  • 17
  • 77
  • Please include the nginx error as well here. – Nidheesh Jun 26 '20 at 09:29
  • In my case, Nginx configuration error, how to setup multi-website domain in Nginx? – zus Jun 26 '20 at 11:20
  • check your nginx error log file (/var/log/nginx/error.log) and post the error message here please. – Nidheesh Jun 26 '20 at 19:44
  • Pls check with my updated post, here my doubt about how to setup Nginx? – zus Jun 27 '20 at 02:44
  • Do you really need to setup the multisites in different directories? – Nidheesh Jun 27 '20 at 16:44
  • This is what procedure right, if I wrong pls correct me? – zus Jun 28 '20 at 01:02
  • Out of the box, we can run magento multi-store without having sub-directories, but it depends on your requirement. Are you planning to run all websites on the same domain or planning to use multiple domains / subdomains? How you want to structure your url etc.. – Nidheesh Jun 28 '20 at 13:41
  • @Nidheesh Any help for setup LEMP localost Multi Website url to nginx configuration? Nginx : justpaste.it/8d5xm Main website : Path - usr/share/nginx/html/gomart, URL - 192.168.1.65:8087/ Multi-website : URL - 192.168.1.65:8087/grocery/ – zus Jul 01 '20 at 01:35

2 Answers2

2

Can you follow below blog they have setup this.

https://devdocs.magento.com/guides/v2.4/config-guide/multi-site/ms_nginx.html

ParulThakkar
  • 1,147
  • 3
  • 15
2

for installation please follow the link,

Magento 2: How to configure Nginx to use multiple websites with sub-folder

you can also check the below link for your problem. Magento 2: How to configure Nginx to use multiple websites with sub-folder

Thank You.

Smita Kagwade
  • 1,403
  • 3
  • 17
  • 39