I installed apache and configured my virtual host on my CentOS 6.4.
But when I restart apache (using this command: sudo service httpd restart), it warns me that "Warning: DocumentRoot [/ var / www / vhosts] does not exist." I check the directory / var / www / vhosts, it has already been created, and the resolution is 0777. What did I do wrong? any help please ...
-> this is my virtual host configuration.
DocumentRoot /var/www/vhosts ServerName trien.cba ServerAlias trien.cba ErrorLog /var/log/httpd/trien.cba.error.log CustomLog /var/log/httpd/trien.cba.access.log common AllowOverride All Order allow,deny Allow from all Options -Indexes
....
-> and this warning:
[ root@test-cba ~]#sudo service httpd restart Stopping httpd: [ OK ] Starting httpd: Warning: DocumentRoot [/var/www/vhosts] does not exist Warning: DocumentRoot [/var/www/vhosts] does not exist
source share