[Catalyst] Catalyst in reverse proxy mode
Peter Edwards
peterdragon at users.sourceforge.net
Mon Dec 12 15:18:20 CET 2005
Hi Bernard, here's an example of a lightweight frontend, heavy backend
configuration for Apache 1. It's not for a Catalyst app but similar enough
to be useful and is for a lightweight apache listening at myapp.foo.com port
80, used for proxying and serving static files, and a heavy mod_perl apache
listening at localhost port 8070 to run transactions.
# proxy myapp.foo.com on to backend apache at localhost:8070
# except for images, icons and robots.txt served locally
<VirtualHost *>
ServerName myapp.foo.com
ErrorLog logs/proxy_error_log_myapp.foo.com
DocumentRoot /opt/myapp/html
RewriteEngine On
RewriteLog /usr/local/apache/logs/rewrite_log
RewriteLogLevel 0
RewriteRule ^/images - [L]
RewriteRule ^/icons - [L]
RewriteRule ^/robots\.txt - [L]
RewriteRule ^/(.*$) http://127.0.0.1:8070/$1 [P]
ProxyPassReverse / http://127.0.0.1/
RewriteRule ^proxy:.* - [F] # disallow use of this server to proxy
out elsewhere
</VirtualHost>
Regards, Peter
-----Original Message-----
From: catalyst-bounces at lists.rawmode.org
[mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Bernard FRIT
Sent: 12 December 2005 13:42
To: The elegant MVC web framework
Subject: [Catalyst] Catalyst in reverse proxy mode
Hi,
I'd like to run Catalyst from the internal http server and have Apache
running as a reverse proxy server to serve pages from
http://localhost:3000
I tried to set up a RewriteRule using the [P] apache flag but I was
unsuccessful.
Did anybody try that kind of configuration and could provide some example ?
--
Bernard FRIT
_______________________________________________
Catalyst mailing list
Catalyst at lists.rawmode.org
http://lists.rawmode.org/mailman/listinfo/catalyst
More information about the Catalyst
mailing list