Changes between Version 13 and Version 14 of TracModPython


Ignore:
Timestamp:
19/04/2022 13:22:08 (3 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v13 v14  
    5555  SetHandler mod_python
    5656  PythonInterpreter main_interpreter
    57   PythonHandler trac.web.modpython_frontend 
     57  PythonHandler trac.web.modpython_frontend
    5858  PythonOption TracEnv /var/trac/myproject
    5959  PythonOption TracUriRoot /projects/myproject
     
    8989PythonOption TracLocale en_GB.UTF8
    9090
    91 # See description above       
     91# See description above
    9292PythonOption TracUriRoot /projects/myproject
    9393}}}
     
    110110=== Setting the Python Egg Cache
    111111
    112 If the Egg Cache isn't writeable by your Web server, you'll either have to change the permissions, or point Python to a location where Apache can write. This can manifest itself as a `500 internal server error` and/or a complaint in the syslog. 
     112If the Egg Cache isn't writeable by your Web server, you'll either have to change the permissions, or point Python to a location where Apache can write. This can manifest itself as a `500 internal server error` and/or a complaint in the syslog.
    113113
    114114{{{#!apache
    115115<Location /projects/myproject>
    116116  ...
    117   PythonOption PYTHON_EGG_CACHE /tmp 
     117  PythonOption PYTHON_EGG_CACHE /tmp
    118118  ...
    119119</Location>
     
    140140  SetHandler mod_python
    141141  PythonInterpreter main_interpreter
    142   PythonHandler trac.web.modpython_frontend 
     142  PythonHandler trac.web.modpython_frontend
    143143  PythonOption TracEnvParentDir /var/trac
    144144  PythonOption TracUriRoot /projects
     
    234234
    235235   #remove these if you don't want to force SSL
    236    RewriteEngine On 
     236   RewriteEngine On
    237237   RewriteCond %{HTTPS} off
    238238   RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
     
    279279SetHandler mod_python
    280280PythonInterpreter main_interpreter
    281 PythonHandler trac.web.modpython_frontend 
     281PythonHandler trac.web.modpython_frontend
    282282PythonOption TracEnv /system/path/to/this/directory
    283283PythonOption TracUriRoot /path/on/apache
     
    361361
    362362'''Note''': For the above configuration to have any effect it must be put after the configuration of your project root location, ie {{{<Location /myproject />}}}.
    363 
    364 **Note:** Do not enable python optimizations using the directive `PythonOptimize On`. When optimizations are enabled the page header/footer and documentation for macros and plugins will be hidden. An error will be raised in Trac 1.0.11 and later when optimizations are enabled.
    365363
    366364=== HTTPS issues