Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

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.

share|improve this answer
add comment

What is your 'DocumentRoot' set to in your httpd.conf?

It may be set to: DocumentRoot "/var/www/somedir.dev"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.