[Catalyst-commits] r8087 - trunk/Catalyst-Manual/lib/Catalyst/Manual

tonvoon at dev.catalyst.perl.org tonvoon at dev.catalyst.perl.org
Tue Jul 8 13:07:07 BST 2008


Author: tonvoon
Date: 2008-07-08 13:07:07 +0100 (Tue, 08 Jul 2008)
New Revision: 8087

Modified:
   trunk/Catalyst-Manual/lib/Catalyst/Manual/Cookbook.pod
Log:
Added ProxyPass ignores for static files. Removed
C::E::HTTP::POE and replaced with ::Prefork instead


Modified: trunk/Catalyst-Manual/lib/Catalyst/Manual/Cookbook.pod
===================================================================
--- trunk/Catalyst-Manual/lib/Catalyst/Manual/Cookbook.pod	2008-07-06 21:22:17 UTC (rev 8086)
+++ trunk/Catalyst-Manual/lib/Catalyst/Manual/Cookbook.pod	2008-07-08 12:07:07 UTC (rev 8087)
@@ -1768,7 +1768,7 @@
 expect a low number of hits or you don't need mod_perl/FastCGI speed,
 you could use the development server as the application server with a
 lightweight proxy web server at the front.  However, consider using
-L<Catalyst::Engine::HTTP::POE> for this kind of deployment instead, since
+L<Catalyst::Engine::HTTP::Prefork> for this kind of deployment instead, since
 it can better handle multiple concurrent requests without forking, or can
 prefork a set number of servers for improved performance.
 
@@ -1813,9 +1813,18 @@
         Order deny,allow
         Allow from all
     </Proxy>
+
+    # Need to specifically stop these paths from being passed to proxy
+    ProxyPass /static !
+    ProxyPass /favicon.ico !
+
     ProxyPass / http://localhost:8080/
     ProxyPassReverse / http://localhost:8080/
 
+    # This is optional if you'd like to show a custom error page 
+    # if the proxy is not available
+    ErrorDocument 502 /static/error_pages/http502.html
+
 You can wrap the above within a VirtualHost container if you want
 different apps served on the same host.
 




More information about the Catalyst-commits mailing list