[rt-devel] [PATCH rt3/README] Better mod_perl2 config.
Autrijus Tang
autrijus at autrijus.org
Fri Sep 5 11:28:57 EDT 2003
I have tweaked my mod_perl2 config as below, because the
method I advertised earlier in README does not work with
local/html/* pages -- they get silently dropped with 404.
With mod_rewrite, this problem is solved and there both may now use the
correct <Location /> setting.
Thanks,
/Autrijus/
@@ -197,32 +197,20 @@
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8
- # these two lines applies to Apache2+mod_perl2 only
+ # these four lines applies to Apache2+mod_perl2 only: {{{
PerlSetVar MasonArgsMethod CGI
PerlModule Apache2 Apache::compat
+ RewriteEngine On
+ RewriteRule ^(.*)/$ $1/index.html
+ # }}}
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
- # this section applies to Apache 1 only
<Location />
SetHandler perl-script
PerlHandler RT::Mason
</Location>
-
- # this section applies to Apache2+mod_perl2 only
- <FilesMatch "\.html$">
- SetHandler perl-script
- PerlHandler RT::Mason
- </FilesMatch>
- <LocationMatch "/Attachment/">
- SetHandler perl-script
- PerlHandler RT::Mason
- </LocationMatch>
- <LocationMatch "/REST/">
- SetHandler perl-script
- PerlHandler RT::Mason
- </LocationMatch>
</VirtualHost>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc:
=?UTF-8?Q?=E9=80=99=E6=98=AF=E6=95=B8=E4=BD=8D=E5=8A=A0=E7=B0=BD?=
=?UTF-8?Q?=E7=9A=84=E9=83=B5?= =?UTF-8?Q?=E4=BB=B6?=
Url : http://pallas.eruditorum.org/pipermail/rt-devel/attachments/20030905/6aa8b10a/attachment.pgp
More information about the Rt-devel
mailing list