[Mageia-sysadm] [176] - add a type for vhost redirection to ssl ( for epoll and catdap, once we have https )

root at mageia.org root at mageia.org
Sat Nov 6 10:36:03 CET 2010


Revision: 176
Author:   misc
Date:     2010-11-06 10:36:03 +0100 (Sat, 06 Nov 2010)
Log Message:
-----------
- add a type for vhost redirection to ssl ( for epoll and catdap, once we have https )

Modified Paths:
--------------
    puppet/modules/apache/manifests/init.pp

Added Paths:
-----------
    puppet/modules/apache/templates/vhost_ssl_redirect.conf

Modified: puppet/modules/apache/manifests/init.pp
===================================================================
--- puppet/modules/apache/manifests/init.pp	2010-11-06 09:00:37 UTC (rev 175)
+++ puppet/modules/apache/manifests/init.pp	2010-11-06 09:36:03 UTC (rev 176)
@@ -54,8 +54,20 @@
         }
     }
 
-    define vhost_catalyst_app($script, $process = 4, $force_ssl = false) {
+    define vhost_redirect_ssl() {
+        file { "redirect_ssl_$name.conf":
+            path => "/etc/httpd/conf/vhosts.d/redirect_ssl_$name.conf",
+            ensure => "present",
+            owner => root,
+            group => root,
+            mode => 644,
+            notify => Service['apache'],
+            content => template("apache/vhost_ssl_redirect.conf")
+        }
+    }
 
+    define vhost_catalyst_app($script, $process = 4, $use_ssl = false) {
+
         include apache::mod_fastcgi 
 
         file { "$name.conf":

Added: puppet/modules/apache/templates/vhost_ssl_redirect.conf
===================================================================
--- puppet/modules/apache/templates/vhost_ssl_redirect.conf	                        (rev 0)
+++ puppet/modules/apache/templates/vhost_ssl_redirect.conf	2010-11-06 09:36:03 UTC (rev 176)
@@ -0,0 +1,4 @@
+<VirtualHost *:80>
+        ServerName <%= vhost %>
+        Redirect / https://<%= vhost %>/
+</VirtualHost>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101106/c723cc9b/attachment.html>


More information about the Mageia-sysadm mailing list