Report abuse
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- apache.conf-20100226 2009-07-24 16:02:40.000000000 +0000
+++ apache.conf 2010-02-27 00:21:42.000000000 +0000
@@ -16,4 +16,10 @@
RedirectMatch ^[/]$ https://dev.plone.org
+ # support for cookie-based themes
+ RewriteRule ^/trac-theme /plone [CO=theme:trac:%{HTTP_HOST},R,L]
+ RewriteRule ^/plone-theme /plone [CO=theme:plone:%{HTTP_HOST},R,L]
+ RewriteCond %{HTTP_COOKIE} theme=trac
+ RewriteRule ^/(.*) /trac/$1 [PT]
+
# XXX This stuff used to be in /home/lrowe/new/static
Alias /plone.css /srv/dev.plone.org/static/plone.css
@@ -39,4 +45,12 @@
</LocationMatch>
+ <LocationMatch "^/trac/(archetypes|collective|marketing|plone|plone.net|plone.org)">
+ SetEnv PYTHON_EGG_CACHE /srv/dev.plone.org/egg-cache
+ SetHandler mod_python
+ PythonHandler trac.web.modpython_frontend
+ PythonOption TracEnvParentDir /srv/dev.plone.org/trac
+ PythonOption TracUriRoot /
+ </LocationMatch>
+
<LocationMatch "^/old/(archetypes|collective|marketing|plone|plone.net|plone.org)">
SetEnv PYTHON_EGG_CACHE /srv/dev.plone.org/egg-cache
@@ -72,4 +86,11 @@
ErrorLog /var/log/apache2/dev.plone.org/error.log
+ # support for cookie-based themes
+ RewriteEngine On
+ RewriteRule ^/trac-theme /plone [CO=theme:trac:%{HTTP_HOST},R,L]
+ RewriteRule ^/plone-theme /plone [CO=theme:plone:%{HTTP_HOST},R,L]
+ RewriteCond %{HTTP_COOKIE} theme=trac
+ RewriteRule ^/(.*) /trac/$1 [PT]
+
<Location />
SetEnv PYTHON_EGG_CACHE /srv/dev.plone.org/egg-cache
|