Working on migrating servers and having zero luck setting up my subdomains. The behavior I'm looking for is fairly straightforward:
- www.domain.com & domain.com --> /var/www/live/
- *.domain.com --> /var/www/*/ (assuming the sub directory exists, otherwise redirect to main site)
I've tried using $host in a couple of configurations and I've tried using many variations of:
This is basic NginX behavior but I'm completely stumped and I've wasted way too many hours trying to hack my way through this. Can anyone shed some light on the solution?
Thanks in advance!