1 | # *** *** *** |
---|
2 | # ------------------- |
---|
3 | # Zope Configuration. |
---|
4 | # ------------------- |
---|
5 | # |
---|
6 | # IMPORTANT: In order for SSL access to work, copy the part between the |
---|
7 | # lines with the nine asterisks * to your SSL virtual host section, too! |
---|
8 | # |
---|
9 | # This rule adds the trailing slash if omitted. So, we will have it for |
---|
10 | # all subsequent rules |
---|
11 | RewriteEngine on |
---|
12 | RewriteRule ^/Zope$ /Zope/ [R] |
---|
13 | # |
---|
14 | # Zope requires the authentication headers to be passed to it if it is |
---|
15 | # called through the cgi of another web server (like apache). An "easy" |
---|
16 | # way to do so is to do a little mod_rewrite'ing. See doc/WEBSERVER.txt in |
---|
17 | # your Zope base directory for further information. |
---|
18 | # |
---|
19 | # This maps maps /Zope/ to the Zope.cgi CGI script. |
---|
20 | RewriteCond %{HTTP:Authorization} ^(.*) |
---|
21 | RewriteRule ^/Zope/(.*) /opt/local/www/cgi-bin/Zope.cgi/$1 [env=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] |
---|
22 | |
---|
23 | # *** *** *** |
---|
24 | # |
---|
25 | # This lets the Zope cgi script run: |
---|
26 | # |
---|
27 | |
---|
28 | <Directory /opt/local/www/cgi-bin.default> |
---|
29 | Options +ExecCGI |
---|
30 | </Directory> |
---|
31 | |
---|
32 | |
---|
33 | # *** *** *** |
---|
34 | # |
---|
35 | # To require SSL to access the Zope management screens, uncomment the |
---|
36 | # next section: |
---|
37 | # |
---|
38 | #<IfDefine SSL> |
---|
39 | #<LocationMatch "/Zope/(.*)manage(.*)"> |
---|
40 | # SSLRequireSSL |
---|
41 | #</LocationMatch> |
---|
42 | # |
---|
43 | #<LocationMatch "/cgi-bin/Zope.cgi(.*)manage(.*)"> |
---|
44 | # SSLRequireSSL |
---|
45 | #</LocationMatch> |
---|
46 | #</IfDefine> |
---|
47 | # |
---|
48 | # End of Zope configuration section. |
---|
49 | |
---|