Skip to content

Commit 7dd39ec

Browse files
authored
Update how-to-configure-nginx-for-a-multistore.md
The section about Varnish was wrong, because you'd get both a `server.storecode` and `varnish.storecode`, while you'd only want to have the latter when working with a Varnish configuration. Otherwise, Varnish would be bypassed for these storecode URLS by the existence of `server.storecode`.
1 parent 68a47d6 commit 7dd39ec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ When you opt for using different domains for each storefront then it will be rel
3636
set $storecode "example_storecode";
3737
```
3838

39-
#### **Multistore in Combination with Varnish**
39+
#### Multistore in Combination with Varnish
4040

41-
\***Attention**, If you have a multistore, with hypernode-manage-vhost enabled ANDyou are using Varnish. You'd have to add a `varnish.storecode` file with the same content to your vhost configuration as well. You could simply copy the **server.storecode**like: `cp server.storecode varnish.storecode`
41+
\***Attention**, If you have a multistore, with hypernode-manage-vhost enabled AND you are using Varnish. You'd have to prefix the file with `varnish` instead of `server`, like `varnish.storecode`. This way these multistore requests will go through varnish and will then be rewritten accordingly with the `varnish.storecode` configuration.
4242

4343
### Using Subdirectories
4444

@@ -67,7 +67,6 @@ Next to the correct Nginx configuration you will also need to create the subdire
6767
```bash
6868
ln -s /data/web/public /data/web/public/fr
6969
ln -s /data/web/public /data/web/public/nl
70-
7170
```
7271

7372
### Using a Combination of Different Domains and Subdirectories
@@ -103,7 +102,6 @@ Last but not least you will also need to create the subdirectories in the webroo
103102
```bash
104103
ln -s /data/web/public /data/web/public/fr
105104
ln -s /data/web/public /data/web/public/nl
106-
107105
```
108106

109107
## Example Setup

0 commit comments

Comments
 (0)