I apologize if this is more of an apache question than it is a php question but I figured I'd give this a shot.
So I have an apache server running multiple domains and I would like to define constants for each domain without having to explicitly include some sort of constants file at the beginning of every single file. Is there a good place to define constants so they can be accessed anywhere in a given domain?
I stumbled across 'auto_prepend_file' and that seems like it'll do the trick but I won't want to prepend the same file across all domains.
I have /var/www/blah.com/constants.php
I would like the correct constants.php file to get included when I go to the domain.