I'm having trouble with some domain detection at apache level.
Please take a look at this logs.
Code: Select all
==> /var/log/apache2/domains/domain2.com.ar.log <==
181.47.xxx.xxx - - [25/Jan/2025:21:02:38 +0000] "GET / HTTP/1.0" 200 890 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0"
==> /var/log/apache2/domains/domain1.com.ar.error.log <==
2025/01/25 21:02:38 [error] 317214#317214: *34 openat() "/home/admin/web/domain1.com.ar/public_html/image.png" failed (2: No such file or directory), client: 181.47.xxx.xxx, server: domain1.com.ar, request: "GET /image.png HTTP/2.0", host: "domain2.com.ar", referrer: "https://domain2.com.ar/"
2025/01/25 21:02:38 [error] 317214#317214: *34 openat() "/home/admin/web/domain1.com.ar/public_html/favicon.ico" failed (2: No such file or directory), client: 181.47.xxx.xxx, server: domain1.com.ar, request: "GET /favicon.ico HTTP/2.0", host: "domain2.com.ar", referrer: "https://domain2.com.ar/"
Basically:
- I do a request to https://domain2.com.ar
- I get an HTTP 200 from domain2.com.ar
- I get HTTP 404 for files that I know are there present in the same directory as domain2's "index.html" file.
- The 404s are registered in domain1.com.ar logs, even when it can be clearly seen that "host" and "referer" fields are not domain1.com.ar
Seems like having some kind of "catch all" behaviour. I suspect this could be apache2 template related, but it does the same if I select either "default" or "hosting".
Why would Apache behave this way?
Is there a way I can debug apache clauses?
Thanks in advance.