Background
WF2 doesn't have native support for M2 multistore setups.
Up until now the only way of setting up multistore using WF2 was to override the nginx file in the wf2.yml file and setting it all up manually using a nginx configuration file:
Functionality
This PR adds native support for multistore to WF2 so that multiple stores can be defined in the wf2.yml file directly and have WF2 handle generating the right nginx configuration behind the scenes so that "it just works".
The configuration looks as follows:
Caveats
Only multistores by subdirectory or prefix are supported by this PR, multistore by different domains however is still supported by overriding the nginx file as it was before. This work could be extended in the future to support multistore domains fairly easily when the need arises.
Background WF2 doesn't have native support for M2 multistore setups. Up until now the only way of setting up multistore using WF2 was to override the nginx file in the
wf2.yml
file and setting it all up manually using a nginx configuration file:ie:
Functionality This PR adds native support for multistore to WF2 so that multiple stores can be defined in the
wf2.yml
file directly and have WF2 handle generating the right nginx configuration behind the scenes so that "it just works". The configuration looks as follows:Caveats Only multistores by subdirectory or prefix are supported by this PR, multistore by different domains however is still supported by overriding the nginx file as it was before. This work could be extended in the future to support multistore domains fairly easily when the need arises.