• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question How to add new domain to new webstore in magento 2

bulent

Regular Pleskian
Hi,
I want to use one magento 2 install to use it with second domain. Can you help me how to add in plesk the second domain

Thanks in advance,
Bulent
 
Do you want to use Magento Multi-Store setup? If yes, we can use the "Additional Apache directives" section to send 'SetEnvIf Host' and 'MAGE_RUN' variables.
 
Do you want to use Magento Multi-Store setup? If yes, we can use the "Additional Apache directives" section to send 'SetEnvIf Host' and 'MAGE_RUN' variables.
Hi Mate,
exactly.
Should I add the second domain to main as alias?
Can you be more specific which variables and how to add them?

Thanks,
Bulent
 
You have to add the Domain as an Additional Domain with same Document Root as the other Magento website (httpdocs/pub).

Then you have to add in 'Additional Apache directives' HTTP and HTTPS both.

Code:
SetEnvIf Host domain.tld* MAGE_RUN_CODE=your_code
SetEnvIf Host domain.tld* MAGE_RUN_TYPE=website

Please refer to Magento 2 documentation for MAGE_RUN. It will explain properly.
 
Hi buddy, it seems to me that in order to help your problem, we need a person who understands Web Development and programming.
 
Hi buddy, it seems to me that in order to help your problem, we need a person who understands Web Development and programming. Perhaps your question can be Googled and a solution can be found on the Internet, but if you're asking for help right here, then you haven't found anything. I hope that there are programmers or people who have met with similar questions and they will be able to help you. I can only say that two domains on the same page can not be placed like that. I hope you will cope with this task and you will succeed. Good luck!
 
Last edited by a moderator:
Back
Top