Bug 32269

Summary: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd2/conf/sites-enabled/ports_all.conf:9
Product: Sisyphus Reporter: Vitaly Lipatov <lav>
Component: apache2-baseAssignee: Anton Farygin <rider>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: lex.shen, rider, shaba
Version: unstable   
Hardware: all   
OS: Linux   

Description Vitaly Lipatov 2016-07-15 01:09:13 MSK
Видимо, этот файл больше не нужен
 # rpm -qf /etc/httpd2/conf/sites-available/ports_all.conf
apache2-base-2.4.18-alt3

# cat /etc/httpd2/conf/sites-available/ports_all.conf 
NameVirtualHost *
Comment 1 Alexey Shabalin 2016-10-03 22:10:34 MSK
Но надо иметь ввиду, что если в директории будет пусто, то запуск httpd2 обломится.

httpd2: Syntax error on line 61 of /etc/httpd2/conf/httpd2.conf: No matches for the wildcard '*.conf' in '/etc/httpd2/conf/ports-enabled', failing (use IncludeOptional if required)

Было бы очень хорошо везде в /etc/httpd2/conf/httpd2.conf заменить Include на IncludeOptional

IncludeOptional:
This directive allows inclusion of other configuration files from within the server configuration files. It works identically to the Include directive, with the exception that if wildcards do not match any file or directory, the IncludeOptional directive will be silently ignored instead of causing an error.

или это лучше отдельной багой повесить?
Comment 2 ashen 2017-10-03 03:05:32 MSK
В /etc/httpd2/conf/sites-available/ports_all.conf

Закоментировать строку

NameVirtualHost *

и всё нормально работает.
Comment 3 Repository Robot 2017-10-20 10:30:48 MSK
apache2-1:2.4.28-alt1.S1 -> sisyphus:

Tue Oct 10 2017 Anton Farygin <rider@altlinux.ru> 1:2.4.28-alt1.S1
- new version 2.4.28
- disabled NameVirtualHost directive in ports_all.conf (closes: #32269)
- increased timeout for restarting httpd on SysVinit sytems (closes: #31062)
- increased LOOPSSTART and TimeoutStartSec (closes: #33978)
- fixes:
	* CVE-2017-9798 Corrupted or freed memory access