ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 49 - AD0-E716 discussion

Report
Export

A merchant of an Adobe Commerce Cloud project wants to setup one of their websites using a subdomain. The merchant is considering the domain to be set as secondstore.example.com.

In addition to editing the magento-vars.php file, and apply a domain check and set $_SERVER['MAGE_RUN_CODE'] and $_SERVER['MAGE_RUN_TYPE'].

What file is required to perform this action?

A.
Configure secondstore.example.com subdomain route in NGINX virtual-host configuration file.
Answers
A.
Configure secondstore.example.com subdomain route in NGINX virtual-host configuration file.
B.
Configure secondstore.example.com subdomain route in .magento/services.yaml.
Answers
B.
Configure secondstore.example.com subdomain route in .magento/services.yaml.
C.
Configure secondstore.example.com subdomain route in .magento/routes.yaml.
Answers
C.
Configure secondstore.example.com subdomain route in .magento/routes.yaml.
Suggested answer: C

Explanation:

The developer can set up a subdomain for one of their websites by configuring the subdomain route in the .magento/routes.yaml file. This file defines how incoming requests are routed to different applications or services on the Adobe Commerce Cloud platform. The developer needs to add a route for secondstore.example.com and map it to the same application as example.com.The developer also needs to specify the upstream variable for secondstore.example.com as MAGE_RUN_CODE and MAGE_RUN_TYPE. Verified

Reference: [Magento 2.4 DevDocs]3

asked 02/10/2024
Angela Cappa
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first