Edgewall Software

Changes between Version 169 and Version 170 of TracModPython


Ignore:
Timestamp:
Nov 6, 2015, 1:54:06 AM (8 years ago)
Author:
Ryan J Ollos
Comment:

Adapt example to Apache 2.4. Changes patterned after TracInstall@423.

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v169 v170  
    3737{{{#!apache
    3838<Location /mpinfo>
    39    SetHandler mod_python
    40    PythonInterpreter main_interpreter
    41    PythonHandler mod_python.testhandler
    42    Order allow,deny
    43    Allow from all
     39  SetHandler mod_python
     40  PythonInterpreter main_interpreter
     41  PythonHandler mod_python.testhandler
     42  # For Apache 2.2
     43  <IfModule !mod_authz_core.c>
     44    Order allow,deny
     45    Allow from all
     46  </IfModule>
     47  # For Apache 2.4
     48  <IfModule mod_authz_core.c>
     49    Require all granted
     50  </IfModule>
    4451</Location>
    4552}}}
     
    4855{{{#!apache
    4956<Location /projects/myproject>
    50    SetHandler mod_python
    51    PythonInterpreter main_interpreter
    52    PythonHandler trac.web.modpython_frontend
    53    PythonOption TracEnv /var/trac/myproject
    54    PythonOption TracUriRoot /projects/myproject
    55    Order allow,deny
    56    Allow from all
     57  SetHandler mod_python
     58  PythonInterpreter main_interpreter
     59  PythonHandler trac.web.modpython_frontend
     60  PythonOption TracEnv /var/trac/myproject
     61  PythonOption TracUriRoot /projects/myproject
     62  # For Apache 2.2
     63  <IfModule !mod_authz_core.c>
     64    Order allow,deny
     65    Allow from all
     66  </IfModule>
     67  # For Apache 2.4
     68  <IfModule mod_authz_core.c>
     69    Require all granted
     70  </IfModule>
    5771</Location>
    5872}}}