Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
None
-
None
Description
Flow to reproduce:
1. Go to https://ezplatform.com/#platform-sh-option and click "Deploy on platform.sh". Trail platform.sh account with installed eZ Platform will be created.
2. Upgrade platform.sh account.
3. In app/config/ezplatform.yml change siteaccess match to Map\Host:
match: Map\Host: ezcloud.ccplatform.net: site admin.ezcloud.ccplatform.net: admin fr.ezcloud.ccplatform.net: fr de.ezcloud.ccplatform.net: de no.ezcloud.ccplatform.net: no
4. Update platform.sh routes (.platform/routes.yaml):
.default_settings: &default_settings type: upstream upstream: app:http cache: enabled: false ssi: enabled: false https://ezcloud.ccplatform.net: *default_settings https://admin.ezcloud.ccplatform.net: *default_settings
5. Point custom domains to platform.sh instance and add them on platform.sh side:
$ host ezcloud.ccplatform.net
ezcloud.ccplatform.net is an alias for master-7rqtwti-qrrz3rwdpetby.us.platform.sh.
master-7rqtwti-qrrz3rwdpetby.us.platform.sh has address 54.88.225.116
$ host admin.ezcloud.ccplatform.net admin.ezcloud.ccplatform.net is an alias for ezcloud.ccplatform.net. ezcloud.ccplatform.net is an alias for master-7rqtwti-qrrz3rwdpetby.us.platform.sh. master-7rqtwti-qrrz3rwdpetby.us.platform.sh has address 54.88.225.116
6. Deploy this changes to platform.sh and you will be able to access admin using new custom domain: https://admin.ezcloud.ccplatform.net/login
7. Create stage env on platform.sh and try to open stage admin (https://admin.ezcloud.ccplatform.net.stage-y77w3ti-qrrz3rwdpetby.us.platform.sh/)
8. Default siteaccess will be shown on stage, instead of admin.
https://packagist.org/packages/contextualcode/platformsh-siteaccess-matcher-bundle fixes this issue.