576df0
diff --git a/modules/ssl/ssl_engine_config.c b/modules/ssl/ssl_engine_config.c
576df0
index 4cfd2d0..6ac55bd 100644
576df0
--- a/modules/ssl/ssl_engine_config.c
576df0
+++ b/modules/ssl/ssl_engine_config.c
576df0
@@ -776,9 +776,11 @@ const char *ssl_cmd_SSLCipherSuite(cmd_parms *cmd,
576df0
     }
576df0
     
576df0
     if (!strcmp("SSL", arg1)) {
576df0
-        /* always disable null and export ciphers */
576df0
-        arg2 = apr_pstrcat(cmd->pool, arg2, ":!aNULL:!eNULL:!EXP", NULL);
576df0
         if (cmd->path) {
576df0
+            /* Disable null and export ciphers by default, except for PROFILE=
576df0
+             * configs where the parser doesn't cope. */
576df0
+            if (strncmp(arg2, "PROFILE=", 8) != 0)
576df0
+                arg2 = apr_pstrcat(cmd->pool, arg2, ":!aNULL:!eNULL:!EXP", NULL);
576df0
             dc->szCipherSuite = arg2;
576df0
         }
576df0
         else {
576df0
@@ -1542,8 +1544,10 @@ const char *ssl_cmd_SSLProxyCipherSuite(cmd_parms *cmd,
576df0
     }
576df0
     
576df0
     if (!strcmp("SSL", arg1)) {
576df0
-        /* always disable null and export ciphers */
576df0
-        arg2 = apr_pstrcat(cmd->pool, arg2, ":!aNULL:!eNULL:!EXP", NULL);
576df0
+        /* Disable null and export ciphers by default, except for PROFILE=
576df0
+         * configs where the parser doesn't cope. */
576df0
+        if (strncmp(arg2, "PROFILE=", 8) != 0)
576df0
+            arg2 = apr_pstrcat(cmd->pool, arg2, ":!aNULL:!eNULL:!EXP", NULL);
576df0
         dc->proxy->auth.cipher_suite = arg2;
576df0
         return NULL;
576df0
     }