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