Hi,I have four subdomains on the same host which work as expected whis this base config
<VirtualHost 4.DOMAIN.edu.ar:80> ServerName 4.DOMAIN.edu.ar ServerAlias 4.DOMAIN.edu.ar ServerAdmin webmaster@xxxxxxxxxxxxx DocumentRoot /var/www/4 <Directory "/var/www/4"> Options FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error_4.log CustomLog ${APACHE_LOG_DIR}/access_4.log combined </VirtualHost>In the particular case of fourth subdomain, gets redirected to the first. See
# curl -v -H Host:4.DOMAIN.edu.ar http://INTERNAL-IP/ * Expire in 0 ms for 6 (transfer 0x55669ac96c10) * Trying INTERNAL-IP... * TCP_NODELAY set * Expire in 200 ms for 4 (transfer 0x55669ac96c10) * Connected to INTERNAL-IP (INTERNAL-IP) port 80 (#0)
GET / HTTP/1.1 Host:4.DOMAIN.edu.ar User-Agent: curl/7.64.0 Accept: */*
< HTTP/1.1 301 Moved Permanently < Date: Tue, 21 Sep 2021 18:32:32 GMT < Server: Apache/2.4.48 < X-Pingback: http://1.DOMAIN.edu.ar/xmlrpc.php < X-Redirect-By: WordPress < Location: https://1.DOMAIN.edu.ar/ < Content-Length: 0 < Content-Type: text/html; charset=UTF-8 < * Connection #0 to host INTERNAL-IP left intactAs said, domains 1, 3 and 3 works. In fact, when configuring the 4th just copied the one of the working configs and changed the subdomain, directory and also the log. Nothing more, but the result is not the one I expected.
Any hint will be much appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx