I have a script that I want to run on every subdomain request like, larry.mysite.com, mustard.mysite.com but not www.mysite.com.
The script needs to know that the subdomain it was called from was "larry", or "mustard".
Can someone point me in the right direction on how to do this? I think it'll involve mod_perl 2 ( I'm using Apache 2 ) but I'm not sure what to even start looking for.