The alias_set variable is set when a parent location contains a ProxyPass,
authorGraham Leggett <minfrin@apache.org>
Tue, 21 Dec 2010 20:00:38 +0000 (20:00 +0000)
committerGraham Leggett <minfrin@apache.org>
Tue, 21 Dec 2010 20:00:38 +0000 (20:00 +0000)
so this check catches valid ProxyPasses. Remove the check.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1051628 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index dc66bb7dd3985dc8ab4222ceb08a6b81fc6c1c89..337c63de70385eb27f066b883d754517f01f34f8 100644 (file)
@@ -1417,9 +1417,6 @@ static const char *
 
     /* if per directory, save away the single alias */
     if (cmd->path) {
-        if (dconf->alias_set) {
-            return "ProxyPass may be defined just once within a specific location block";
-        }
         dconf->alias = apr_pcalloc(cmd->pool, sizeof(struct proxy_alias));
         dconf->alias_set = 1;
         new = dconf->alias;