Custom domain for each sites
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- AmzoooJibal
- Posts: 35
- Joined: 12 Mar 2021, 20:09
Custom domain for each sites
Hello,
i have installed aimeos in xampp in local machine, then I have created a site with this commande: php artisan aimeos:setup seller1.com
i have configured my host and vhots like this:
host:
vhost:
but when I access to the url:www.seller1.com i have the default marketplace not the seller1
any help please ?
i have installed aimeos in xampp in local machine, then I have created a site with this commande: php artisan aimeos:setup seller1.com
i have configured my host and vhots like this:
host:
Code: Select all
127.0.0.1 www.seller1.com
Code: Select all
<Directory "D:/aimeos/myshop/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
<VirtualHost *:80>
DocumentRoot D:/aimeos/myshop/public
ServerName www.seller1.com
</VirtualHost>
any help please ?
- AmzoooJibal
- Posts: 35
- Joined: 12 Mar 2021, 20:09
Re: Custom domain for each sites
my conf/shop.php is like this:
Code: Select all
<?php
$routes = [];
if( config( 'app.shop_multishop' ) || config( 'app.shop_registration' ) ) {
$routes = ['routes' => [
'admin' => ['prefix' => 'admin', 'middleware' => ['web', 'verified']],
'jqadm' => ['prefix' => 'admin/{site}/jqadm', 'middleware' => ['web', 'auth', 'verified']],
'jsonadm' => ['prefix' => 'admin/{site}/jsonadm', 'middleware' => ['web', 'auth', 'verified']],
'jsonapi' => ['prefix' => 'jsonapi/{site}', 'middleware' => ['web', 'api']],
'account' => ['prefix' => 'profile/{site}', 'middleware' => ['web', 'auth']],
'default' => ['prefix' => 'shop/{site}', 'middleware' => ['web']],
'update' => ['prefix' => '{site}'],
] ];
}
return $routes + [
'apc_enabled' => false, // enable for maximum performance if APCu is availalbe
'apc_prefix' => 'aimeos:', // prefix for caching config and translation in APCu
'pcntl_max' => 4, // maximum number of parallel command line processes when starting jobs
'routes' => [
'admin' => ['domain' => '{site}', 'prefix' => 'admin', 'middleware' => ['web']],
'jqadm' => ['domain' => '{site}', 'prefix' => 'admin/jqadm', 'middleware' => ['web', 'auth']],
'jsonadm' => ['domain' => '{site}', 'prefix' => 'admin/jsonadm', 'middleware' => ['web', 'auth']],
'jsonapi' => ['domain' => '{site}', 'prefix' => 'jsonapi', 'middleware' => ['web', 'api']],
'account' => ['domain' => '{site}', 'prefix' => 'profile', 'middleware' => ['web', 'auth']],
'default' => ['domain' => '{site}', 'prefix' => 'shop', 'middleware' => ['web']],
'update' => ['domain' => '{site}'],
],
.........
Re: Custom domain for each sites
First, "www.seller1.com" is not the same as "seller1.com"!
To configure custom domain routing read:
https://aimeos.org/docs/latest/laravel/ ... he-routing
To configure custom domain routing read:
https://aimeos.org/docs/latest/laravel/ ... he-routing
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- AmzoooJibal
- Posts: 35
- Joined: 12 Mar 2021, 20:09
Re: Custom domain for each sites
Hello,
i hve read this link many times and i have added this to my config/shop.php :
and also activate multistore:
and i have just installed new version and test all this domains:
but allways i have the default store with demo article, my question where is the www.seller1.com store ? why when i access www.seller1.com the default store is shown ?
Thanks for your help
i hve read this link many times and i have added this to my config/shop.php :
Code: Select all
<?php
$routes = [];
if (config('app.shop_multishop') || config('app.shop_registration')) {
$routes = [
'routes' => [
'admin' => ['prefix' => 'admin', 'middleware' => ['web', 'verified']],
'jqadm' => ['prefix' => 'admin/{site}/jqadm', 'middleware' => ['web', 'auth', 'verified']],
'jsonadm' => ['prefix' => 'admin/{site}/jsonadm', 'middleware' => ['web', 'auth', 'verified']],
'jsonapi' => ['prefix' => 'jsonapi/{site}', 'middleware' => ['web', 'api']],
'account' => ['prefix' => 'profile/{site}', 'middleware' => ['web', 'auth']],
'default' => ['prefix' => 'shop/{site}', 'middleware' => ['web']],
'update' => ['prefix' => '{site}'],
]
];
}
return $routes + [
'apc_enabled' => false, // enable for maximum performance if APCu is availalbe
'apc_prefix' => 'aimeos:', // prefix for caching config and translation in APCu
'pcntl_max' => 4, // maximum number of parallel command line processes when starting jobs
'routes' => [
// Docs: https://aimeos.org/docs/Laravel/Custom_routes
// Multi-sites: https://aimeos.org/docs/Laravel/Configure_multiple_shops
'admin' => ['domain' => '{site}', 'prefix' => 'admin', 'middleware' => ['web']],
'jqadm' => ['domain' => '{site}', 'prefix' => 'admin/jqadm', 'middleware' => ['web', 'auth']],
'jsonadm' => ['domain' => '{site}', 'prefix' => 'admin/jsonadm', 'middleware' => ['web', 'auth']],
'jsonapi' => ['domain' => '{site}', 'prefix' => 'jsonapi', 'middleware' => ['web', 'api']],
'account' => ['domain' => '{site}', 'prefix' => 'profile', 'middleware' => ['web', 'auth']],
'default' => ['domain' => '{site}', 'prefix' => 'shop', 'middleware' => ['web']],
'update' => ['domain' => '{site}'],
],
......
Code: Select all
SHOP_MULTISHOP=true
SHOP_REGISTRATION=true
Code: Select all
php artisan aimeos:setup http://www.seller1.com
php artisan aimeos:setup www.seller1.com
Thanks for your help
- AmzoooJibal
- Posts: 35
- Joined: 12 Mar 2021, 20:09
Re: Custom domain for each sites
ok i found the problem, it's not verry calire in documentaion so i have changed:
and now its working
Code: Select all
'default' => ['domain' => '{site}', 'prefix' => 'shop', 'middleware' => ['web']],
to 'default' => ['domain' => '{site}', 'prefix' => '', 'middleware' => ['web']],
Re: Custom domain for each sites
If you enable one or both of these settings
you also need to change the route config in the if-block, not in the block that's part of the return statement.
Code: Select all
SHOP_MULTISHOP=true
SHOP_REGISTRATION=true
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Custom domain for each sites
AmzoooJibal wrote: ↑13 Mar 2021, 12:33 my conf/shop.php is like this:
Code: Select all
<?php $routes = []; if( config( 'app.shop_multishop' ) || config( 'app.shop_registration' ) ) { $routes = ['routes' => [ 'admin' => ['prefix' => 'admin', 'middleware' => ['web', 'verified']], 'jqadm' => ['prefix' => 'admin/{site}/jqadm', 'middleware' => ['web', 'auth', 'verified']], 'jsonadm' => ['prefix' => 'admin/{site}/jsonadm', 'middleware' => ['web', 'auth', 'verified']], 'jsonapi' => ['prefix' => 'jsonapi/{site}', 'middleware' => ['web', 'api']], 'account' => ['prefix' => 'profile/{site}', 'middleware' => ['web', 'auth']], 'default' => ['prefix' => 'shop/{site}', 'middleware' => ['web']], 'update' => ['prefix' => '{site}'], ] ]; } return $routes + [ 'apc_enabled' => false, // enable for maximum performance if APCu is availalbe 'apc_prefix' => 'aimeos:', // prefix for caching config and translation in APCu 'pcntl_max' => 4, // maximum number of parallel command line processes when starting jobs 'routes' => [ 'admin' => ['domain' => '{site}', 'prefix' => 'admin', 'middleware' => ['web']], 'jqadm' => ['domain' => '{site}', 'prefix' => 'admin/jqadm', 'middleware' => ['web', 'auth']], 'jsonadm' => ['domain' => '{site}', 'prefix' => 'admin/jsonadm', 'middleware' => ['web', 'auth']], 'jsonapi' => ['domain' => '{site}', 'prefix' => 'jsonapi', 'middleware' => ['web', 'api']], 'account' => ['domain' => '{site}', 'prefix' => 'profile', 'middleware' => ['web', 'auth']], 'default' => ['domain' => '{site}', 'prefix' => 'shop', 'middleware' => ['web']], 'update' => ['domain' => '{site}'], ], .........
Re: Custom domain for each sites
Hi
I have installed amieos but I am not able to do this multitenant settings can you help Mr I am ready to pay you
I have installed amieos but I am not able to do this multitenant settings can you help Mr I am ready to pay you
Re: Custom domain for each sites
If you need paid support, the Aimeos company offers it:
https://aimeos.com/support
https://aimeos.com/support
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star