Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Subdomain Rewrites

$
0
0
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 :-)

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>