From dcfbe1decb475b7270769c8df0f5311fe242c70c Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Wed, 5 Feb 2025 12:46:57 +0100 Subject: [PATCH] add note about being able to change the $storetype in nginx for magento docs --- .../nginx/how-to-configure-nginx-for-a-multistore.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/hypernode-platform/nginx/how-to-configure-nginx-for-a-multistore.md b/docs/hypernode-platform/nginx/how-to-configure-nginx-for-a-multistore.md index 6c109d41..ca382be1 100644 --- a/docs/hypernode-platform/nginx/how-to-configure-nginx-for-a-multistore.md +++ b/docs/hypernode-platform/nginx/how-to-configure-nginx-for-a-multistore.md @@ -42,6 +42,14 @@ You'd have to prefix the file with `varnish` instead of `server`, like `varnish. This way these multistore requests will go through varnish and will then be rewritten accordingly with the `varnish.storecode` configuration. ``` +### Use a different Store Type + +Magento uses a default store type of `store`, you can change this to `website` too if this better fits your need, more information about this can be found on `MAGE_RUN_TYPE` in [the Magento 2 official documentation](https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/multi-sites/ms-overview). + +```nginx +set $storetype "store"; +``` + ### Using Subdirectories Another option is to use subdirectories instead. Once you have added the required vhost you need to add a `server.storecode` file to the specific vhost directory (`/data/web/nginx/example.com/`) with the following content: