[chef] How best to force SSL with application_php and apache2 cookbooks?


Chronological Thread 
  • From: Phil Mocek < >
  • To:
  • Subject: [chef] How best to force SSL with application_php and apache2 cookbooks?
  • Date: Thu, 14 Mar 2013 10:55:41 -0700

What is the preferred method of configuring a Web application
deployed via the [application_php cookbook][1] to accept HTTP over
SSL connections on port 443 and to redirect requests on 80 to 443?

I'm using application_php with success, but it is [hard-coded to
cause the http server to listen on 8080][2].  I don't find any
discussion of SSL or of alternative ports in documentation of the
application_php and application cookbooks or of the deploy
provider.  The apache2 cookbook docs show how to install mod_ssl
and to specify some cipher configuration, but as far as I can
tell, none of that matters as long as application_php is
configuring Apache to do name-based virtual hosting on 8080.  Web
searches for relevant keywords have turned up nothing relevant.


References:

 [1]: <http://community.opscode.com/cookbooks/application_php>
 [2]: 
<https://github.com/opscode-cookbooks/application_php/blob/master/templates/default/php.conf.erb#L1>

-- 
Phil Mocek
http://mocek.org/



Archive powered by MHonArc 2.6.16.

§