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 : (or) 404 error.

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

2 Answers 2


Can you follow below blog they have setup this.



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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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