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.

  • Please include the nginx error as well here. – Nidheesh Jun 26 at 9:29
  • In my case, Nginx configuration error, how to setup multi-website domain in Nginx? – zus Jun 26 at 11:20
  • check your nginx error log file (/var/log/nginx/error.log) and post the error message here please. – Nidheesh Jun 26 at 19:44
  • Pls check with my updated post, here my doubt about how to setup Nginx? – zus Jun 27 at 2:44
  • Do you really need to setup the multisites in different directories? – Nidheesh Jun 27 at 16:44
2
+25

Can you follow below blog they have setup this.

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

| improve this answer | |
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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.