You would define a default vhost for that port that would handle those requests. In that vhost, you can either return a 403, a 302, or even a 418.
On Mon, 16 May 2022 at 09:04, lejeczek <pelj...@yahoo.co.uk.invalid> wrote: > Hi guys. > > I've engine-searched this and turns out be an old "issue" but I failed > to find a solution which works. > > When your apache gets a request (DNS says it should) for a domain which > your Apache is not configured to server then first alphabetically > domain/vhost/vname will respond - which in itself surprises me, the > rationale of it - I read people explain. > > So the old "issue" is - naturally everybody' I'd imagine - how to have > those non-existent domains/vhosts, both HTTP & HTTPS, caught and dealt > with(ideally redirect them someplace) ? > > all thoughts and suggestions share are much appreciated, > > many thanks, L. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >