Corrections in .htaccess for Apache 2.4

Rui Rosado <rui-NpLHaEHSiNtmR6Xm/[email protected]> Wed, 8 Feb 2017 10:41:20 +0100
Newsgroups gmane.comp.bug-tracking.bugzilla.devel
Organization Rosado Beheer BV
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------5BDD6E6F256C19F720FA6B6C
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi again,

To complete my previous post ('mod_version has to be loaded in Apache'):

Th directives in the .htaccess of all directories in the /bugzilla 
directory tree do not conform to the new format for Apache 2.4. Please 
refer to this page about 'Upgrading to 2.4 from 2.2' on the Apache 
website (paragraph 'Run-Time Configuration Changes'):

https://httpd.apache.org/docs/2.4/upgrading.html

It boils down to replacing all:

   <IfVersion < 2.4>
        Deny from all
   </IfVersion>
   <IfVersion >= 2.4>
        Deny from all
   </IfVersion>
by
   <IfVersion < 2.4>
        Deny from all
   </IfVersion>
   <IfVersion >= 2.4>
        Require all denied
   </IfVersion>

and all
     <IfVersion < 2.4>
          Allow from all
     </IfVersion>
     <IfVersion >= 2.4>
          Allow from all
     </IfVersion>
by
     <IfVersion < 2.4>
          Allow from all
     </IfVersion>
     <IfVersion >= 2.4>
          Require all granted
     </IfVersion>

in all .htaccess files (11x).
Note: the elements <IfVersion < 2.4> are OK because they conform to the 
Apache 2.2 syntax.

Best regards,
Rui Rosado

-------- Doorgestuurd bericht --------
Onderwerp: 	mod_version has to be loaded in Apache
Datum: 	Mon, 6 Feb 2017 12:48:25 +0100
Van: 	Rui Rosado <rui-NpLHaEHSiNtmR6Xm/[email protected]>
Organisatie: 	Rosado Beheer BV
Aan: 	[email protected]



Hi everybody,

I would like to point out a lack (IMHO) in the Bugzilla instructions for 
installling Apache on Windows (3.5.2. Apache on Windows#3.5.2.1. 
Installing 
<https://bugzilla.readthedocs.io/en/5.0/installing/apache-windows.html#apache-windows>)
This paragraph lacks the instruction to uncomment the line 'LoadModule 
version_module modules/mod_version.so' in ./conf/httpd.conf (Apache)
If I *do not* uncomment that line our Bugzilla's main page will show up 
without any 'decoration': just plain text links and edit-boxes.

The reason is that all the .htaccess files under \bugzilla directory and 
its subdirectories contain: <IfModule mod_version.c>, so they are 
referring to mod_version.so
If mod_version.so is not made available, all the lines in the .htaccess 
files with 'Deny from all' or 'Allow from all' will cause erros to be 
logged in Apache's error.log file.

After making mod_version.so available to Apache everything works great 
for us.

I am not an Apache or Bugzilla expert, and therefore I do not know if 
this is the only (right) solution. But if it is mentioned in the 
installation instruction, it could prevent people pulling out their hairs.

Regards,
Rui Rosado



--------------5BDD6E6F256C19F720FA6B6C
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi again,<br>
    <br>
    To complete my previous post ('mod_version has to be loaded in
    Apache'):<br>
    <br>
    Th directives in the .htaccess of all directories in the /bugzilla
    directory tree do not conform to the new format for Apache 2.4.
    Please refer to this page about 'Upgrading to 2.4 from 2.2' on the
    Apache website (paragraph 'Run-Time Configuration Changes'):<br>
    <br>
    <a class="moz-txt-link-freetext" href="https://httpd.apache.org/docs/2.4/upgrading.html">https://httpd.apache.org/docs/2.4/upgrading.html</a><br>
    <br>
    It boils down to replacing all:<br>
    <br>
      &lt;IfVersion &lt; 2.4&gt;<br>
           Deny from all<br>
      &lt;/IfVersion&gt;<br>
      &lt;IfVersion &gt;= 2.4&gt;<br>
           Deny from all<br>
      &lt;/IfVersion&gt;<br>
    by<br>
      &lt;IfVersion &lt; 2.4&gt;<br>
           Deny from all<br>
      &lt;/IfVersion&gt;<br>
      &lt;IfVersion &gt;= 2.4&gt;<br>
           Require all denied<br>
      &lt;/IfVersion&gt;<br>
    <br>
    and all<br>
        &lt;IfVersion &lt; 2.4&gt;<br>
             Allow from all<br>
        &lt;/IfVersion&gt;<br>
        &lt;IfVersion &gt;= 2.4&gt;<br>
             Allow from all<br>
        &lt;/IfVersion&gt;<br>
    by<br>
        &lt;IfVersion &lt; 2.4&gt;<br>
             Allow from all<br>
        &lt;/IfVersion&gt;<br>
        &lt;IfVersion &gt;= 2.4&gt;<br>
             Require all granted<br>
        &lt;/IfVersion&gt;<br>
    <br>
    in all .htaccess files (11x).<br>
    Note: the elements &lt;IfVersion &lt; 2.4&gt; are OK because they
    conform to the Apache 2.2 syntax.<br>
    <br>
    <div class="moz-forward-container">Best regards,<br>
      Rui Rosado<br>
      <br>
      -------- Doorgestuurd bericht --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Onderwerp:
            </th>
            <td>mod_version has to be loaded in Apache</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Datum: </th>
            <td>Mon, 6 Feb 2017 12:48:25 +0100</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Van: </th>
            <td>Rui Rosado <a class="moz-txt-link-rfc2396E" href="mailto:rui-NpLHaEHSiNtmR6Xm/[email protected]">&lt;rui-NpLHaEHSiNtmR6Xm/[email protected]&gt;</a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Organisatie:
            </th>
            <td>Rosado Beheer BV</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Aan: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Hi everybody,<br>
      <br>
      I would like to point out a lack (IMHO) in the Bugzilla
      instructions for installling Apache on Windows (<a
        moz-do-not-send="true"
href="https://bugzilla.readthedocs.io/en/5.0/installing/apache-windows.html#apache-windows">3.5.2.
        Apache on Windows#3.5.2.1. Installing</a>)<br>
      This paragraph lacks the instruction to uncomment the line
      'LoadModule version_module modules/mod_version.so' in
      ./conf/httpd.conf (Apache)<br>
      If I *do not* uncomment that line our Bugzilla's main page will
      show up without any 'decoration': just plain text links and
      edit-boxes.<br>
      <br>
      The reason is that all the .htaccess files under \bugzilla
      directory and its subdirectories contain: &lt;IfModule
      mod_version.c&gt;, so they are referring to mod_version.so<br>
      If mod_version.so is not made available, all the lines in the
      .htaccess files with 'Deny from all' or 'Allow from all' will
      cause erros to be logged in Apache's error.log file.<br>
      <br>
      After making mod_version.so available to Apache everything works
      great for us.<br>
      <br>
      I am not an Apache or Bugzilla expert, and therefore I do not know
      if this is the only (right) solution. But if it is mentioned in
      the installation instruction, it could prevent people pulling out
      their hairs.<br>
      <br>
      <div class="moz-signature">Regards,<br>
        Rui Rosado<br>
        <br>
        <br>
      </div>
    </div>
  </body>
</html>

--------------5BDD6E6F256C19F720FA6B6C--