Error configuring virtual hosts
- by user148351
i Have a problem using my virtual hosts:
When i try to connect to my server on direct ip adress, for example
http://111.11.11.111/
in apache error log i see following error:
script '/var/www/html/mmm/public/index.php' not found or unable to stat
File index.php exists!!! and has correct access rights.
I have virtual hosts configured
<VirtualHost *:80>
DocumentRoot /var/www/html/mmm/public
ServerName example.com
ServerAlias example.com www.example..com
<Directory var/www/html/mmm/public>
AllowOverride All
</Directory>
</VirtualHost>
Why when I try to connect to ip address - it try to search index.php not in servers root directory, but in root directory of virtual host.