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