Multiple web and backend templates
Posted: Sun Jan 24, 2016 3:30 am
Hi everyone,
My apologies if this question has already been answered, but I cannot seem to find the answer on the forum and on github (cf. https://github.com/serghey-rodin/vesta/issues).
We are looking to modify the web and backend templates. More importantly, we would like to assign a specific web and backend template per web site (and not per user as it seems to be by default). For example, user A would have different web sites :
Reading the files in /usr/local/vesta/data/templates/web/nginx/php-fpm, we see this line :
Which seem to imply that we could create files in a specific location to force specific configuration per website. Is there a way to do this in the GUI? It seems easy to do it in command line, but we would rather do it the recommended way.
Our ultimate goal is to permit users to have websites in ruby, in php, etc. so they would need different templates for each web sites. However it seems only possible to assign a package to a user which will force the same templates for all web sites of this user. Are we missing something obvious?
We are using NGINX + PHP-FPM + MariaDB on CentOS 7.
Thanks!
My apologies if this question has already been answered, but I cannot seem to find the answer on the forum and on github (cf. https://github.com/serghey-rodin/vesta/issues).
We are looking to modify the web and backend templates. More importantly, we would like to assign a specific web and backend template per web site (and not per user as it seems to be by default). For example, user A would have different web sites :
- some_ruby_site.com with Web Template:ruby Backend Template:socket
- some_php_site.com with Web Template:php_force_ssl Backend Template:socket
Reading the files in /usr/local/vesta/data/templates/web/nginx/php-fpm, we see this line :
Code: Select all
include %home%/%user%/conf/web/nginx.%domain%.conf*;
Our ultimate goal is to permit users to have websites in ruby, in php, etc. so they would need different templates for each web sites. However it seems only possible to assign a package to a user which will force the same templates for all web sites of this user. Are we missing something obvious?
We are using NGINX + PHP-FPM + MariaDB on CentOS 7.
Thanks!