SSL certificates
[hcoop/domtool2.git] / lib / apache.dtl
index d80d7ef..93fb3a3 100644 (file)
@@ -9,13 +9,20 @@ context Vhost;
 {{A WWW virtual host}}
 
 extern type suexec_flag;
 {{A WWW virtual host}}
 
 extern type suexec_flag;
-extern val suexec_flag : bool -> suexec_flag;
 {{Whether or not to use Suexec with a vhost.
 {{Whether or not to use Suexec with a vhost.
-[suexec_flag] fails when passed [false] by a user without the 'www' privilege.}}
+For users with the 'www' privilege, this type is identical to [bool].
+For others, it has only one value, [true].}}
+
+extern type ssl_cert_path;
+{{Filesystem path to an SSL certificate in your 'cert' list}}
+
+extern type ssl;
+extern val no_ssl : ssl;
+extern val use_cert : ssl_cert_path -> ssl;
 
 extern val vhost : host -> Vhost => [Domain]
        {WebNodes : [web_node],
 
 extern val vhost : host -> Vhost => [Domain]
        {WebNodes : [web_node],
-        SSL : bool,
+        SSL : ssl,
         User : your_user,
         Group : your_group,
         DocumentRoot : your_path,
         User : your_user,
         Group : your_group,
         DocumentRoot : your_path,