Nginx wildcard subdomain redirection
In a situation like where you are using nginx and you have to redirect abc.example.com, or random.example.com to example.com/user/subdomain, here is the snippet that will do the job. Let's say your nginx server block looks like this: Now add this new server block before your existing server block: Here the first server block is a … Continue reading Nginx wildcard subdomain redirection