you should consider using mod_rewrite rules for this <div><br></div><div>check out: (<a href="http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#relative">idea</a>)</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br></div><div>-nw<br><br><div class="gmail_quote">On Thu, Aug 5, 2010 at 2:26 PM, Kutbuddin Doctor <span dir="ltr"><<a href="mailto:ksdoctor@sanfordburnham.org">ksdoctor@sanfordburnham.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I currently run Catalyst via <a href="http://myapp_fastcgi.pl" target="_blank">myapp_fastcgi.pl</a> without SSL<br>
<br>
Is there an explicit instruction set (copy/paste code) with advice on how to make parts (most) of this run through SSL.<br>
<br>
>From reading the docs, it looks like I will start with:<br>
<br>
# in MyApp.pm<br>
use Catalyst qw/ StaticSimple<br>
Authentication<br>
Session<br>
Session::Store::FastmMap<br>
Session::State::Cookie<br>
/;<br>
<br>
MyApp->setup( qw/RequireSSL/ );<br>
<br>
MyApp->config->{require_ssl} = {<br>
https => '<a href="http://secure.mydomain.com" target="_blank">secure.mydomain.com</a>',<br>
http => '<a href="http://www.mydomain.com" target="_blank">www.mydomain.com</a>',<br>
remain_in_ssl => 0,<br>
no_cache => 0,<br>
};<br>
<br>
# in any controller methods that should be secured<br>
$c->require_ssl;<br>
<br>
Then in my Apache httpd.conf I currently have (static mode):<br>
<br>
FastCgiServer /path/to/myapp/script/<a href="http://myapp_fastcgi.pl" target="_blank">myapp_fastcgi.pl</a> -processes 3<br>
Alias / /path/to/myapp/script/script/<a href="http://myapp_fastcgi.pl/" target="_blank">myapp_fastcgi.pl/</a><br>
<br>
I hope to run this on the same machine and have 2 Apache Virtual Hosts for '<a href="http://secure.mydomain.com" target="_blank">secure.mydomain.com</a>' and '<a href="http://mydomain.com" target="_blank">mydomain.com</a>' .<br>
<br>
Can someone provide apache config scripts for this situation? Do I need Port 443 for the FastCgiServer command in Apache? Will these 2 VH's use separate Session FastMmap files? Log files?<br>
<br>
thanks,<br>
KSD<br>
<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br></div>