I configured a VHost for my project as follows:
1 - I added a line to the file /etc/hosts
containing local address, url and alias
127.0.0.1 meuprojeto.com meuprojeto
2 - I added the meuprojeto.conf file to /etc/apache2/sites-enabled/meupro.conf containing the following information:
<VirtualHost www.meuprojeto.com>
ServerAdmin webmaster@localhost
ServerName wwww.meuprojeto.com
ServerAlias meuprojeto
DocumentRoot "/var/www/html/meuprojeto"
</VirtualHost>
There is a copy of this file in /etc/apache2/sites-available
I can access my project via the url normally declared.
The problem is that now all requests point to the root of the project. If you enter link the request falls into /var/www/html/meuprojeto.
I have already checked the root directory of apache in /etc/apache2/apache.conf
and it points to:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Thank you for your attention right away.