From: Ton Voon Date: Tue, 8 Jul 2008 12:07:07 +0000 (+0000) Subject: Added ProxyPass ignores for static files. Removed X-Git-Tag: v5.8005~273 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=816fc503ea59fc23506afda7cc5104bb152b3b83 Added ProxyPass ignores for static files. Removed C::E::HTTP::POE and replaced with ::Prefork instead --- diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 75bae02..3aed940 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -1768,7 +1768,7 @@ The development server is a mini web server written in perl. If you 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 for this kind of deployment instead, since +L 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 @@ Make sure mod_proxy is enabled and add: Order deny,allow Allow from all + + # 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.