直到今天,我使用基于名称的虚拟主机,但没有 NameVirtualHost指令。 有效。 现在,我读了关于这个指令,并添加了它 – 没有改变。 那么 – NameVirtualHost真的有必要呢,还是Apache 2.4会自动设置这个?
好吧,这似乎是没有必要了:
Nov 10 13:55:05 hostname apache2[1718]: Starting web server: apache2: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:6