I inherited an Apache configuration with a piece I don't really understand. The directory path there is
/var/www/somedir.dev/
And if you point the browser to
http://localhost/
it actually shows the index.php file from the somedir.dev directory and not the root directory. Why would it be? Can there have been some config that had made the default be that /somedir.dev/ directory? Nothing under the root resolves anymore. How can I make things under root be recognized by the server again?
Thanks, Alex
For an Ubuntu system, the usual place you want to look is the
/etc/apache2/sites-enabled
directory. The files in there will define how you vhosts are configured. In particular check the DocumentRoot settings for you virtual hosts.What is your 'DocumentRoot' set to in your httpd.conf?
It may be set to: DocumentRoot "/var/www/somedir.dev"