[Catalyst-commits] r8664 -
trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2
jester at dev.catalyst.perl.org
jester at dev.catalyst.perl.org
Fri Nov 28 13:26:26 GMT 2008
Author: jester
Date: 2008-11-28 13:26:26 +0000 (Fri, 28 Nov 2008)
New Revision: 8664
Modified:
trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP19.pm
trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP20.pm
Log:
Added details of Aliasing static content if not running at root in a VH
Modified: trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP19.pm
===================================================================
--- trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP19.pm 2008-11-28 04:10:52 UTC (rev 8663)
+++ trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP19.pm 2008-11-28 13:26:26 UTC (rev 8664)
@@ -54,10 +54,26 @@
</Location>
# Make sure to let Apache handle your static files
- # (And remember to remove the Static::Simple plugin in production)
+ # (It is not necessary to remove the Static::Simple plugin
+ # in production; Apache will bypass Static::Simple if
+ # configured in this way)
+
<Location /static>
SetHandler default-handler
- </Location>
+ </Location>
+
+ # If not running at a root location in a VirtualHost,
+ # you'll probably need to set an Alias to the location
+ # of your static files, and allow access to this location:
+
+ Alias /myapp/static /filesystem/path/to/MyApp/root/static
+ <Directory /filesystem/path/to/MyApp/root/static>
+ allow from all
+ </Directory>
+ <Location /myapp/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 2008-11-28 04:10:52 UTC (rev 8663)
+++ trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache2/MP20.pm 2008-11-28 13:26:26 UTC (rev 8664)
@@ -56,10 +56,26 @@
</Location>
# Make sure to let Apache handle your static files
- # (And remember to remove the Static::Simple plugin in production)
+ # (It is not necessary to remove the Static::Simple plugin
+ # in production; Apache will bypass Static::Simple if
+ # configured in this way)
+
<Location /static>
SetHandler default-handler
</Location>
+
+ # If not running at a root location in a VirtualHost,
+ # you'll probably need to set an Alias to the location
+ # of your static files, and allow access to this location:
+
+ Alias /myapp/static /filesystem/path/to/MyApp/root/static
+ <Directory /filesystem/path/to/MyApp/root/static>
+ allow from all
+ </Directory>
+ <Location /myapp/static>
+ SetHandler default-handler
+ </Location>
+
</VirtualHost>
=head1 DESCRIPTION
More information about the Catalyst-commits
mailing list