Do not think that my virtual host is working correctly. This is what I have inside httpd.conf ... this is the last in the file:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/www/html/testing
ServerName testing.aa.local
</VirtualHost>
In my / etc / hosts file:
127.0.0.1 testing.aa.local
Now, when I go to test.aa.local, it shows the index page of the root of the site. In httpd.conf, the document root is DocumentRoot /var/www/html. It looks like it takes this root document, not the virtualHost documentroot file. When I restart httpd there are no errors. When I say httpd -S, it says:
$ sudo /usr/sbin/httpd -S
VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers:
_default_:443 aa.local (/etc/httpd/conf.d/ssl.conf:81)
*:* aa.local (/etc/httpd/conf/httpd.conf:974)
*:80 is a NameVirtualHost
default server testing.aa.local (/etc/httpd/conf/httpd.conf:1031)
port 80 namevhost testing.aa.local (/etc/httpd/conf/httpd.conf:1031) Syntax OK
Does anyone understand why, when I go to test.aa.local, it shows me the index page / var / www / html, and not / var / www / html / testing? Again, / var / www / html is defined as an httpd.conf file as DocumentRoot, but later on I declare a virtualhost container, and so I thought it should overwrite it?