12-03-2019, 08:27 PM
(This post was last modified: 12-03-2019, 08:30 PM by remkonoteboom.)
You can point to different mounts with "base_dir_alias". You define all of your root folders for assets in your config file as a json dict:
<checkin>
<base_dir_alias>{
"assets1": "/assets1",
"assets2": "/assets2",
}</base_dir_alias>
And then in the naming table, you set the naming convention column "base_dir_alias" to point to one of the defined aliases. Files will automatically be checked into the corresponding root folder.
The url for the asset will contain the base_dir_alias, so you will have to make Apache (or whatever web server your are using) is aware of the new directories. Below is an example of what you will need to add to the apache config file:
<Directory "/assets1" >
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from All
# Apache 2.4
Require all granted
</Directory>
ProxyPass /assets1 !
Alias /assets1 /assets1
Of course, if you use Linux, you could just use symbolic links ...
<checkin>
<base_dir_alias>{
"assets1": "/assets1",
"assets2": "/assets2",
}</base_dir_alias>
And then in the naming table, you set the naming convention column "base_dir_alias" to point to one of the defined aliases. Files will automatically be checked into the corresponding root folder.
The url for the asset will contain the base_dir_alias, so you will have to make Apache (or whatever web server your are using) is aware of the new directories. Below is an example of what you will need to add to the apache config file:
<Directory "/assets1" >
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from All
# Apache 2.4
Require all granted
</Directory>
ProxyPass /assets1 !
Alias /assets1 /assets1
Of course, if you use Linux, you could just use symbolic links ...