I installed the Apache. I created a directory with the name of my site:
/var/www/domain
and I configured the virtualhosts:
<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/domain
ServerName www.domain.com
</VirtualHost>
When I access domain.com, the content appears not from the directory /var/www/domain, but from /var/www.
Why?
The problem was solved! Just add:
<directory /var/www/domain/htdocs>
Options -Indexes
</directory>
Thank you all!
httpd -Sto see how Apache parsed your configuration file. – cyberx86 Feb 7 at 20:43