I created a virtual host file:
<VirtualHost *:80>
ServerName indextest.com
DocumentRoot /var/www/index/
ServerAlias www.indextest.com
<Directory /var/www/index>
Order deny,allow
Allow from all
Options Indexes FollowSymLinks
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog ${APACHE_LOG_DIR}/access.log combined
But accessing to www.indextest.com:
#########
Forbidden
You don’t have permission to access / on this server.
#################
ls -la /var/www/index:
##########
total 8
drwxr-xr-x 2 www-data www-data 4096 Jun 5 15:52 .
drwxr-xr-x 12 root root 4096 Jun 5 15:34 …
-rw-r–r-- 1 www-data www-data 177 Jun 5 16:36 index.html
-rw-r–r-- 1 www-data www-data 0 Jun 5 15:52 test1.html
-rw-r–r-- 1 www-data www-data 0 Jun 5 15:52 test2.html
-rw-r–r-- 1 www-data www-data 0 Jun 5 15:52 test3.html
#############
I tried to copy the file index.html in /home/domain/public_html/ created with virtualmin and it works.
Do you know which directive block the virtual host indetest.com?
Thank you