Skip to content

Commit dcfbe1d

Browse files
author
Jonathan Visser
committed
add note about being able to change the $storetype in nginx for magento docs
1 parent 2793577 commit dcfbe1d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/hypernode-platform/nginx/how-to-configure-nginx-for-a-multistore.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ You'd have to prefix the file with `varnish` instead of `server`, like `varnish.
4242
This way these multistore requests will go through varnish and will then be rewritten accordingly with the `varnish.storecode` configuration.
4343
```
4444

45+
### Use a different Store Type
46+
47+
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).
48+
49+
```nginx
50+
set $storetype "store";
51+
```
52+
4553
### Using Subdirectories
4654

4755
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:

0 commit comments

Comments
 (0)