Got it
server {
listen 80;
server_name ~^(?<firstsubdomain>.+?)\.subdomain\.domainA\.com$;
rewrite ^(.*) http://$firstsubdomain.subdomain.domainB.com$request_uri? permanent;
}
Always helps to upgrade, and I always never want to :-)
server {
listen 80;
server_name ~^(?<firstsubdomain>.+?)\.subdomain\.domainA\.com$;
rewrite ^(.*) http://$firstsubdomain.subdomain.domainB.com$request_uri? permanent;
}
Always helps to upgrade, and I always never want to :-)