This is my .conf
file
<VirtualHost 192.168.1.10:80>
ServerName test.com
ServerAdmin [email protected]
ServerAlias www.test.com
DocumentRoot /var/www/test.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Now it should after typing test.com it go directly to test.com directory , but it's show up this page
Index of /
[ICO] Name Last modified Size Description
[DIR] test.com/ 2015-07-12 23:10 -
[DIR] test22.com/ 2015-07-12 22:55 -
Apache/2.4.7 (Ubuntu) Server at test.com Port 80
why this happen while i defined where test.com have to access in this line.
DocumentRoot /var/www/test.com
It's should show only the content of test.com
directory not all directories , this is my problem :/
So
I need this domain test.com access only this directory in this path
DocumentRoot /var/www/test.com