Unfortunately, no, because Apache does not make it accessible through environment variables .
If you have control over the configuration, you can use the setenv directive next to DirectoryIndex . Then read it in PHP using apache_getenv() .
Otherwise, I think you will have to analyze the Apache configuration files yourself.
source share