title: Apache - httpd won't start as it's complaing about IfVersion being in the wrong format - how to fix?
body: <p>I'm trying to get Request Tracker up and running with mod_fcgi on Apache 2.4.37 and Centos 8.</p>
  
  <p>The httpd service will not start as it's complaining about IfVersion syntax not being correct... however from research it seems correct to me, and is taken straight from the RT website ( <a href="https://docs.bestpractical.com/rt/4.4.2/web_deployment.html#Apache" rel="nofollow noreferrer">https://docs.bestpractical.com/rt/4.4.2/web_deployment.html#Apache</a> )</p>
  
  <p><strong>Why won't httpd start...?</strong></p>
  
  <p>actual error: <code>&lt;IfVersion takes one, two or three arguments, a comparison operator, a version (and a delimiter)&gt;</code></p>
  
  <pre><code>Jan 12 13:47:45 rt.testdomain.ca httpd[3421]: httpd: Syntax error on line 356 of /etc/httpd/conf/httpd.conf: Syntax error on line 17 of /etc/httpd/conf.d/techsupport.testdomain.ca.conf: &lt;IfVersion takes one, two or three arguments, a comparison operator, a version (and a delimiter)&gt;
  Jan 12 13:47:45 rt.testdomain.ca systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
  Jan 12 13:47:45 rt.testdomain.ca systemd[1]: httpd.service: Failed with result 'exit-code'.
  Jan 12 13:47:45 rt.testdomain.ca systemd[1]: Failed to start The Apache HTTP Server.
  </code></pre>
  
  <p>The virtual host file looks like this:</p>
  
  <pre><code>&lt;VirtualHost techsupport.testdomain.ca:8080&gt;
          ### Optional apache logs for RT
          # Ensure that your log rotation scripts know about these files
          # ErrorLog /opt/rt4/var/log/apache2.error
          # TransferLog /opt/rt4/var/log/apache2.access
          # LogLevel debug
  
          AddDefaultCharset UTF-8
  
          ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
  
          DocumentRoot "/opt/rt4/share/html"
          &lt;Location "/"&gt;
              &lt;IfVersion &gt;= 2.4&gt;
                 Require all granted
              &lt;/IfVersion&gt;
              &lt;IfVersion &lt; 2.4&gt;  # For Apache 2.2
                  Order allow,deny
                  Allow from all
              &lt;/IfVersion&gt;
  
              Options +ExecCGI
              AddHandler fcgid-script fcgi
          &lt;/Location&gt;
      &lt;/VirtualHost&gt;
  </code></pre>