All Apache requests pointing to the same directory

0

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.

    
asked by anonymous 25.04.2016 / 17:29

1 answer

0

Hi my friend, I took a look at my own vHost here and I took it to show you, it's already adapted below:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName wwww.meuprojeto.com
    ServerAlias meuprojeto.com
    DocumentRoot C:/var/www/html/meuprojeto (não sei como é o seu caminho completo)
</VirtualHost>

Good Luck, just adapt the DocumentRoot there.

    
25.04.2016 / 18:31