Hello
domain.com/webmail
domain2.com/webmail
It is possible to do this by writing nginx config location instead of creating a separate roundcube for each of them. I wrote a sample code below but couldn't run it.
location /webmail {
root /www/wwwroot/mail.maindomain.net;
index : index.html index.php;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}