pydio / pydio-core

Pydio 8 official repository
https://pydio.com
GNU Affero General Public License v3.0
867 stars 289 forks source link

Apache 2.4 config syntax error in RPM #1409

Closed robbyt closed 6 years ago

robbyt commented 6 years ago

In the RPM for pydio-core, there is a pydio.conf config file that contains both Apache 2.2 and 2.4 auth syntax.

However, the Apache 2.2 syntax is not completely contained within the < 2.4 conditional. If I disable the access_compat_module module, apache will not start because of unrecognized directives.

Here is the correct syntax for the file. I've moved Order allow,deny and Satisfy Any inside the < 2.4 conditional.

<VirtualHost *:8080>
  ServerAdmin webmaster@example.com
  ServerName example.com
  ServerAlias www.example.com
  DocumentRoot /usr/share/pydio/
  ErrorLog /var/log/httpd/error.log
  CustomLog /var/log/httpd/access.log combined
  <Directory /usr/share/pydio>
    Options FollowSymLinks
    AllowOverride All
    <IfVersion < 2.4>
      Order allow,deny
      Allow from all
      Satisfy Any
    </IfVersion>
    <IfVersion >= 2.4>
      Require all granted
    </IfVersion>
  </Directory>
</VirtualHost>
robbyt commented 6 years ago

Please disregard, this was an issue with the Docker image that I'm using.