I have two “server” directives.
The other has:
Both do what they should. However, right now any subdomain (besides
“admin.example.com”) is the exact same as www. I would prefer if things
were redirected so that a user cannot use “randomstuff.example.com” to
see the website. I also don’t want them to be able to use it without a
www (e.g. example.com)
Basically all requests should be directed to have the www subdomain
(except for admin.example.com)
What’s the best way to do this?