php - Multi-Store in OpenCart - Config -


i have 'website1.com' running opencart 2.0.1.1 , want set multi store 'website2.com' - client can manage both websites via 1 single admin area instance. understanding, i'm supposed point 'website2.com' use same httpdocs location 'website1.com'. instead, i've set 'website2.com' alias of 'website1.com' fine, website loads confusing me config.php:

<?php // http define('http_server', 'http://www.website1.com/');  // https define('https_server', 'https://www.website1.com/');  // dir define('dir_application', '/var/www/vhosts/website1.com/httpdocs/catalog/'); define('dir_system', '/var/www/vhosts/website1.com/httpdocs/system/'); define('dir_language', '/var/www/vhosts/website1.com/httpdocs/catalog/language/'); define('dir_template', '/var/www/vhosts/website1.com/httpdocs/catalog/view/theme/'); define('dir_config', '/var/www/vhosts/website1.com/httpdocs/system/config/'); define('dir_image', '/var/www/vhosts/website1.com/httpdocs/image/'); define('dir_cache', '/var/www/vhosts/website1.com/httpdocs/system/cache/'); define('dir_download', '/var/www/vhosts/website1.com/httpdocs/system/download/'); define('dir_upload', '/var/www/vhosts/website1.com/httpdocs/system/upload/'); define('dir_modification', '/var/www/vhosts/website1.com/httpdocs/system/modification/'); define('dir_logs', '/var/www/vhosts/website1.com/httpdocs/system/logs/'); 

would there security issues if change every instance of 'website1.com' $_server['http_host']? - way, correct directories loaded config file.

apparently correct way set multi-store set domain virtualhost - can't understand how work since define statements still going point first website.

appreciate help!

thanks,

liam

multistore handled internally, not in config.php set described in documentation , fine.

as replacing constants $_server globals, don't think pose security risk. primary use of http_host primary url setting , fallback when url doesn't match multistore. explained above, if configure multistore correctly won't need touch this.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -