7126934 http protocol error: code: 503 during pkg install into a non-global zone
authorBrock Pytlik <brock.pytlik@oracle.com>
Wed, 06 Jun 2012 16:52:57 -0700
changeset 2684 c1d14a422ca8
parent 2683 920b995f89b0
child 2685 707707aba792
7126934 http protocol error: code: 503 during pkg install into a non-global zone
src/util/apache2/sysrepo/sysrepo_httpd.conf.mako
--- a/src/util/apache2/sysrepo/sysrepo_httpd.conf.mako	Mon Jun 04 13:25:01 2012 -0700
+++ b/src/util/apache2/sysrepo/sysrepo_httpd.conf.mako	Wed Jun 06 16:52:57 2012 -0700
@@ -435,8 +435,8 @@
                             "%(uri)s/$1 [NE,P]" % locals())
 %>
                 % endif
-        % endfor uri
-% endfor pub
+        % endfor pub
+% endfor uri
 
 % for uri in reversed(sorted(uri_pub_map.keys())):
         % for pub, cert_path, key_path, hash in uri_pub_map[uri]:
@@ -459,8 +459,20 @@
                       % endif
 Alias /${pub}/${hash} ${repo_path}
                 % endif
-        % endfor uri
-% endfor pub
+        % endfor pub
+% endfor uri
+
+<%
+context.write("# Create dummy proxy pass directives so that connection "
+    "pooling happens.\n# The first rule says to ignore all ProxyPass rules, "
+    "which is why this works.\n")
+context.write("ProxyPass / !")
+%>
+% for uri in reversed(sorted(uri_pub_map.keys())):
+        % if uri.startswith("http"):
+<%              context.write("ProxyPass / %s" % uri) %>
+        % endif
+% endfor uri
 
 # any non-file-based repositories get our local versions and syspub responses
 RewriteRule ^.*/versions/0/?$ - [L]