as always here film.lc.conf

<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName film.lc ServerAlias www.film.lc DocumentRoot /var/www/film.lc/ <Directory «/var/www/film.lc»> AllowOverride All Order allow,deny Allow from all Options +Indexes </Directory> ErrorLog /var/www/error.log CustomLog /var/www/access.log combined </VirtualHost> 

this is also a sudo a2enmod rewrite such thing AccessFileName .htaccess in apache.conf is present but I still type film.lc and drop out the list of files and folders of the site but not like the site itself htaccess itself if that

 cmOptions +FollowSymLinks IndexIgnore */* RewriteEngine on # if request begins with /admin remove admin and ad /backend/web/ RewriteCond %{REQUEST_URI} ^/admin RewriteRule ^admin/?(.*) /backend/web/$1 # other requests add /frontend/web/$1 RewriteCond %{REQUEST_URI} !^/(frontend/web|backend/web|admin) RewriteRule (.*) /frontend/web/$1 # if frontend request RewriteCond %{REQUEST_URI} ^/frontend/web RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /frontend/web/index.php # if backend request RewriteCond %{REQUEST_URI} ^/backend/web RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /backend/web/index.php php_value max_execution_time 3000 
  • one
    1. correct the quotes «...» to "..." or, better, remove it altogether. 2. restart the program? - aleksandr barakin
  • @alexanderbarakin is really in quotes problem write an answer - Sergalas

1 answer 1

according to the documentation :

Directory paths may be quoted if you like, however, it must be quoted if the path contains spaces. This would be the case.

free translation:

paths in the directory directive can be limited to quotes, and should be limited to quotes if they contain spaces. because the space is considered the end of the argument.

The use of double quotes is given as an example:

 <directory "путь"> 

practice shows that single quotes are interpreted by the apache program in a similar way - as the limiters of the arguments.

and here quotes-fir trees « and » , used in the file given in a question:

 <Directory «/var/www/film.lc»> 

probably considered by the program as part of the argument, and not as limiters .