[Catalyst-dev] Trouble with ProxyPass
Jillian Rowe
jir2004 at qatar-med.cornell.edu
Tue Jun 18 10:13:53 GMT 2013
I also got it to work with the prefix /myapp in front of the urls using
Catalyst::TraitFor::Request::ProxyBase.
Per the documentation in lib/MyApp.pm
use Catalyst;
use CatalystX::RoleApplicator;
extends 'Catalyst';
__PACKAGE__->apply_request_class_roles(qw/
Catalyst::TraitFor::Request::ProxyBase
/);
__PACKAGE__->setup;
Apache config
ProxyRequests On
ProxyVia On
ProxyReceiveBufferSize 16384
ProxyPass /static !
ProxyPass /favicon.ico !
ProxyPass /bigdata1 !
ProxyPass /bigdata2 !
Alias /static /var/www/JBrowse/root/static
Alias /bigdata1 /data/share/web_public/bigdata1
Alias /bigdata2 /data/share/web_public/bigdata2
<Location /myapp>
# You must have mod_headers enabled for that
# RequestHeader set X-Request-Base /preview
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
SSLRequireSSL
SetHandler perl-script
RequestHeader set X-URL-SCHEME https
RequestHeader set X-Request-Base
https://myservername/myapp
</Location>
ProxyPass /myapp http://localhost:3000
ProxyPassReverse /myapp http://localhost:3000
Hope this helps someone!
Best,
Jillian
More information about the Catalyst-dev
mailing list