Edgewall Software

Changes between Version 70 and Version 71 of TracModWSGI


Ignore:
Timestamp:
Sep 3, 2015, 5:46:15 PM (9 years ago)
Author:
Jun Omae
Comment:

Use <IfModule mod_authz_core.c> to detect Apache 2.4

Legend:

Unmodified
Added
Removed
Modified
  • TracModWSGI

    v70 v71  
    8080<Directory /usr/local/trac/mysite/apache>
    8181    WSGIApplicationGroup %{GLOBAL}
    82     Order deny,allow
    83     Allow from all
     82    # For Apache 2.2
     83    <IfModule !mod_authz_core.c>
     84        Order deny,allow
     85        Allow from all
     86    </IfModule>
     87    # For Apache 2.4
     88    <IfModule mod_authz_core.c>
     89        Require all granted
     90    </IfModule>
    8491</Directory>
    8592}}}
     
    94101<Directory /usr/share/trac/cgi-bin>
    95102    WSGIApplicationGroup %{GLOBAL}
    96     Order deny,allow
    97     Allow from all
    98 </Directory>
    99 }}}
    100 
    101 For Apache 2.4 or higher, use folowing:
    102 {{{#!apache
    103 WSGIScriptAlias /trac /usr/share/trac/cgi-bin/trac.wsgi
    104 
    105 <Directory /usr/share/trac/cgi-bin>
    106     WSGIApplicationGroup %{GLOBAL}
    107     Require all granted
     103    # For Apache 2.2
     104    <IfModule !mod_authz_core.c>
     105        Order deny,allow
     106        Allow from all
     107    </IfModule>
     108    # For Apache 2.4
     109    <IfModule mod_authz_core.c>
     110        Require all granted
     111    </IfModule>
    108112</Directory>
    109113}}}