[Catalyst-commits] r6351 - in
trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine: Apache Apache2
andyg at dev.catalyst.perl.org
andyg at dev.catalyst.perl.org
Mon Apr 30 18:50:42 GMT 2007
Author: andyg
Date: 2007-04-30 18:50:34 +0100 (Mon, 30 Apr 2007)
New Revision: 6351
Modified:
trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache/MP13.pm
trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP19.pm
trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP20.pm
Log:
Apache: Add docs about serving static files properly
Modified: trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache/MP13.pm
===================================================================
--- trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache/MP13.pm 2007-04-30 17:21:40 UTC (rev 6350)
+++ trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache/MP13.pm 2007-04-30 17:50:34 UTC (rev 6351)
@@ -59,6 +59,12 @@
SetHandler perl-script
PerlHandler MyApp
</Location>
+
+ # Make sure to let Apache handle your static files
+ # (And remember to remove the Static::Simple plugin in production)
+ <Location /static>
+ SetHandler default-handler
+ </Location>
</VirtualHost>
=head1 DESCRIPTION
Modified: trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP19.pm
===================================================================
--- trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP19.pm 2007-04-30 17:21:40 UTC (rev 6350)
+++ trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP19.pm 2007-04-30 17:50:34 UTC (rev 6351)
@@ -53,7 +53,13 @@
<Location /some/other/path>
SetHandler perl-script
PerlResponseHandler MyApp
- </Location>
+ </Location>
+
+ # Make sure to let Apache handle your static files
+ # (And remember to remove the Static::Simple plugin in production)
+ <Location /static>
+ SetHandler default-handler
+ </Location>
</VirtualHost>
=head1 DESCRIPTION
Modified: trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP20.pm
===================================================================
--- trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP20.pm 2007-04-30 17:21:40 UTC (rev 6350)
+++ trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP20.pm 2007-04-30 17:50:34 UTC (rev 6351)
@@ -55,7 +55,13 @@
<Location /some/other/path>
SetHandler perl-script
PerlResponseHandler MyApp
- </Location>
+ </Location>
+
+ # Make sure to let Apache handle your static files
+ # (And remember to remove the Static::Simple plugin in production)
+ <Location /static>
+ SetHandler default-handler
+ </Location>
</VirtualHost>
=head1 DESCRIPTION
More information about the Catalyst-commits
mailing list