Specifying the VirtualHost to serve up when there is no DNS Name sent in the HTTP Headers?

StackOverflow https://stackoverflow.com/questions/21484556

  •  05-10-2022
  •  | 
  •  

문제

In Apache 2 how does one specify the (VirtualHost?) that is served up when no DNS Name is set in the HTTP Headers of a request?

도움이 되었습니까?

해결책

The apache2 documentation says that when a VirtualHost...

is first in the configuration file, it has the highest priority and can be seen as the default or primary server.

So, the first one will answer requests that do not explicitly match another VirtualHost through their ServerName directive or separate ip.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top