Magento: administrator in a separate domain

For some reason, I need to add a Magento administrator to a domain other than the base URL. Let me give an example:

Magento Store: http://www.domain.com/storecode/urlpath.html (https for account and verification pages)

I want to configure the administrator for this URL: https://sub.domain.com/adminpath/ (where domain.com is equal to the save address)

I am using MagentoCE 1.9.0.1

I already set custom admin path in local.xml

<admin> <routers> <adminhtml> <args> <frontName><![CDATA[adminpath]]></frontName> </args> </adminhtml> </routers> </admin> 

In System β†’ Configuration β†’ Administrator, I tried some combinations of values ​​for the user admin URL and the user admin path, but nothing works (I tried to execute the solution presented here: <a2> )

Does anyone know what I'm doing wrong?

Thanks for the help!

+5
source share
1 answer

You may be able to uncork some low-power fruits and build there.

  • The site is active at www.domain.com - it looks like you have it

  • Site is active in sub.domain.com . I mean only the appearance of the client. I am not 100% sure how to achieve this, but I believe that it is processed at the web server level. For example, you can create an Apache virtual host entry .

  • Route confirmation works at www.domain.com/admin

  • Then the administrator should also be active at sub.domain.com/admin .

  • At this point, I would restrict access or set up appropriate redirects:

    • www.domain.com/admin redirects to sub.domain.com/admin

    • sub.domain.com redirected to www.domain.com . Of course, be careful to avoid an endless loop. Perhaps only the blacklist is sub.domain.com, as well as whitelisting sub.domain.com/admin.

0
source

Source: https://habr.com/ru/post/1208640/


All Articles