<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>51050</bug_id>
          
          <creation_ts>2024-08-04 20:36:44 +0300</creation_ts>
          <short_desc>[FR] Предлагается изменить дефолтное содержимое конфигурационного файла /etc/httpd2/conf/sites-available/default_https.conf</short_desc>
          <delta_ts>2025-12-06 18:20:40 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>apache2-base</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Шевченко Денис">shevchenkodyu</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>glinkinvd</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>249655</commentid>
    <comment_count>0</comment_count>
    <who name="Шевченко Денис">shevchenkodyu</who>
    <bug_when>2024-08-04 20:36:44 +0300</bug_when>
    <thetext>apache2 сожержит следующие два файла конфигурации для дефолтного виртуального хоста:
/etc/httpd2/conf/sites-available/default.conf
/etc/httpd2/conf/sites-available/default_https.conf

В файле default.conf имеются следующие 3 секции, которые отсутствуют в файле default_https.conf
&lt;Directory /&gt;
    # Summary: Configure for all dirs by default
    # Requires: Directory-root
    Include conf/include/Directory_root_default.conf
&lt;/Directory&gt;

&lt;Directory &quot;/usr/share/doc/indexhtml/&quot;&gt;
    # Summary: Configure for html documents in DocumentRoot
    # Requires: Directory-html
    Include conf/include/Directory_html_default.conf
&lt;/Directory&gt;

&lt;Directory &quot;/var/www/cgi-bin&quot;&gt;
    # Summary: Configure for default CGI directory
    # Requires: Directory-cgi
    Include conf/include/Directory_cgibin_default.conf
&lt;/Directory&gt;

Предлагается добавить эти 3 секции также и в файл /etc/httpd2/conf/sites-available/default_https.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259277</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2025-02-14 19:49:18 +0300</bug_when>
    <thetext>В Sisyphus исправлено, в остальные ветки может попасть по мере расползания обновлений.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>269422</commentid>
    <comment_count>2</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2025-07-18 18:46:43 +0300</bug_when>
    <thetext>Насколько я понял, тут речь шла о файлах подпакета apache2-base:
/etc/httpd2/conf/sites-available/default.conf
/etc/httpd2/conf/sites-available/default_https.conf

Изменения были сделаны в коммите https://git.altlinux.org/gears/a/apache2.git?p=apache2.git;a=commitdiff;h=5259034ca587eedf9af6aef2a803e2881a2709d0 для файла apache2-alt-configs/ sites-available/default_https-compat.conf

Файл default_https-compat.conf попадает в подпакет apache2-mod_ssl-compat с использованием директивы %ghost
%files mod_ssl-compat
%ghost %apache2_sites_enabled/default_https-compat.conf
%ghost %apache2_sites_enabled/000-default_https-compat.conf

Получается, что:
# rpm -ql apache2-mod_ssl-compat
/etc/httpd2/conf/sites-enabled/000-default_https-compat.conf
/etc/httpd2/conf/sites-enabled/default_https-compat.conf

# ls -l /etc/httpd2/conf/sites-enabled/default_https-compat.conf
ls: невозможно получить доступ к &apos;/etc/httpd2/conf/sites-enabled/default_https-compat.conf&apos;: Нет такого файла или каталога

Из-за чего складывается впечатление, что изменения были сделаны не в том файле. Но в тоже время по содержанию коммита можно сказать, будто сделано это преднамеренно, поскольку учитываются особенности старой конфигурации сервера для https.

Корректно ли это?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278579</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-12-06 18:20:40 +0300</bug_when>
    <thetext>apache2-1:2.4.66-alt1 -&gt; sisyphus:

Sat Dec 06 2025 Anton Farygin &lt;rider@altlinux.com&gt; 1:2.4.66-alt1
- 2.4.65 -&gt; 2.4.66 (Fixes: CVE-2025-66200, CVE-2025-65082, CVE-2025-59775,
			CVE-2025-58098, CVE-2025-55753)
- tightened the default_https vhost by
  adding explicit Directory defaults (closes: #51050)
- updated Summary and Description
- built with pcre2
- enabled brotli support
- added lua and http2 modules in separate subpackages
- explicitly enabled cache_disk and socache_shmcb
- folded the downstream patchset in-tree and consolidated packaging patches
- removed apache1 legacy support
- dropped legacy configs and obsolete build options
- dropped Conflicts/Obsoletes from legacy 1.3/2.2 transitions</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>