Re: [Catalyst] Instruction for SSL configuration for Apache and fastcgi
On Thursday, August 05, 2010 04:26:52 pm Kutbuddin Doctor wrote: 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? No, No, and only if you ask for it. Really there's nothing to it, just do it. Write one virtualhost with VirtualHost *:80 ServerName foo [ ... other crap ...] Alias / /path/to/fcgi/ /VirtualHost and one with VirtualHost *:443 ServerName foo SSLEngine On [... other crap ...] Alias / /path/to/fcgi/ /VirtualHost ___ List: Catalyst@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/
[Catalyst] Instruction for SSL configuration for Apache and fastcgi
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} = { https = 'secure.mydomain.com', http = 'www.mydomain.com', remain_in_ssl = 0, no_cache = 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@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/
Re: [Catalyst] Instruction for SSL configuration for Apache and fastcgi
you should consider using mod_rewrite rules for this check out: (ideahttp://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#relative ) -nw On Thu, Aug 5, 2010 at 2:26 PM, Kutbuddin Doctor ksdoc...@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} = { https = 'secure.mydomain.com', http = 'www.mydomain.com', remain_in_ssl = 0, no_cache = 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@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/ ___ List: Catalyst@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/