[Catalyst] Instruction for SSL configuration for Apache and fastcgi

Nicholas Wehr catalyst at bionikchickens.com
Thu Aug 5 21:58:25 GMT 2010


you should consider using mod_rewrite rules for this

check out: (idea<http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#relative>
)

-nw

On Thu, Aug 5, 2010 at 2:26 PM, Kutbuddin Doctor <
ksdoctor at sanfordburnham.org> wrote:

>
> I currently run Catalyst via myapp_fastcgi.pl without SSL
>
> Is there an explicit instruction set (copy/paste code) with advice on how
> to make parts (most) of this run through SSL.
>
> From reading the docs, it looks like I will start with:
>
>    # in MyApp.pm
>    use Catalyst qw/ StaticSimple
>            Authentication
>            Session
>            Session::Store::FastmMap
>            Session::State::Cookie
>            /;
>
>    MyApp->setup( qw/RequireSSL/ );
>
>    MyApp->config->{require_ssl} =3D {
>        https =3D> 'secure.mydomain.com',
>        http =3D> 'www.mydomain.com',
>        remain_in_ssl =3D> 0,
>                no_cache =3D> 0,
>    };
>
>    # in any controller methods that should be secured
>    $c->require_ssl;
>
> Then in my Apache httpd.conf I currently have (static mode):
>
> FastCgiServer /path/to/myapp/script/myapp_fastcgi.pl -processes 3
> Alias / /path/to/myapp/script/script/myapp_fastcgi.pl/
>
> I hope to run this on the same machine and have 2 Apache Virtual Hosts for
> 'secure.mydomain.com' and 'mydomain.com' .
>
> 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?
>
> thanks,
> KSD
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100805/648bc=
cba/attachment.htm


More information about the Catalyst mailing list