Jump to content
Sign in to follow this  
Alon

Перенос админки на на поддомен

Recommended Posts

Здравствуйте!

Возможен ли перенос админки на поддомен? Если да, то как это сделать?

Заранее спасибо!

Share this post


Link to post
Share on other sites

Перенести файлы admin/* в нужное место и отредактировать admin/config.php

Это, если vqmod-модули не используются, в противном случае в них тоже потребуется корректировать актуальный путь для админки.

Share this post


Link to post
Share on other sites

Здравствуйте!

Отредактировал конфиг админки таким макаром(сама она находиться на поддемене), но она вообще не работает. Подскажите, что не так?

 

Файлы админки в корне поддомена.

Идея в том, чтобы админка работала с субдомена.

 

 

// HTTP
define('HTTP_SERVER', 'http://subdomain.xxx.ru');
define('HTTP_CATALOG', 'http://xxx.ru/');

// HTTPS
define('HTTPS_SERVER', 'http://subdomain.xxx.ru');
define('HTTPS_CATALOG', 'http://xxx.ru/');

// DIR
define('DIR_APPLICATION', '/home/httpd/vhosts/xxx/subdomains/subdomain/');
define('DIR_SYSTEM', '/home/httpd/vhosts/xxx/httpdocs/system/');
define('DIR_DATABASE', '/home/httpd/vhosts/xxx/httpdocs/system/database/');
define('DIR_LANGUAGE', '/home/httpd/vhosts/xxx/subdomains/subdomain/language/');
define('DIR_TEMPLATE', '/home/httpd/vhosts/xxx/subdomains/subdomain/view/template/');
define('DIR_CONFIG', '/home/httpd/vhosts/xxx/httpdocs/system/config/');
define('DIR_IMAGE', '/home/httpd/vhosts/xxx/httpdocs/image/');
define('DIR_CACHE', '/home/httpd/vhosts/xxx/httpdocs/system/cache/');
define('DIR_DOWNLOAD', '/home/httpd/vhosts/xxx/httpdocs/download/');
define('DIR_LOGS', '/home/httpd/vhosts/xxx/httpdocs/system/logs/');
define('DIR_CATALOG', '/home/httpd/vhosts/xxx/httpdocs/catalog/');

 

 

 

 

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'login');
define('DB_PASSWORD', 'pass');
define('DB_DATABASE', 'name');
define('DB_PREFIX', 'oc_');

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.