The requested URL was not found on this server apache2/ubuntu

There is a form and a controller.They're all right. I can't configure apache2 to see the files. Tried using apache2. conf=>

<Directory /var/www/ittrainee/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Then I tried setting up the site itself

<VirtualHost *:80>
ServerName ittrainee
ServerAlias www.ittrainee
ServerAdmin webmaster@ittrainee
DocumentRoot /var/www/ittrainee/www/
<Directory /var/www/ittrainee/www/>
   AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

I don't know what to do, please tell me.

Author: Maks alekseev, 2018-11-24

1 answers

Try

<Directory /var/www/ittrainee>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

I.e. removed 1 slash.

 0
Author: Vadim Torik, 2018-11-24 18:06:58