Juan Hernandez has uploaded a new change for review. Change subject: core: Always use IPv4 to for AJP ......................................................................
core: Always use IPv4 to for AJP Currently in the Apache configuration that we use for the connection to the application server we use "localhost" as the address of the AJP connector. This host name is usually translated to both the IPv6 ::1 address and the IPv4 127.0.0.1 address, and it looks like Apache always tries first with the IPv6 address. But the application server doesn't listen in the IPv6 address, only in the IPv4 address. This means that the first attempt to connect is alwas rejected. Not a big issue, as the web server retries inmediatelly with the IPv4 address, but this generates an unnecessary roundtrip. This patche replaces "localhost" with "127.0.0.1" so that the web server will always use IPv4. Change-Id: I36ef2de20236f509b16b5bb7112d0f849e8e96e1 Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> --- M packaging/conf/ovirt-engine-proxy.conf.v2.in 1 file changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/80/17980/1 diff --git a/packaging/conf/ovirt-engine-proxy.conf.v2.in b/packaging/conf/ovirt-engine-proxy.conf.v2.in index 629c00b..3273a25 100644 --- a/packaging/conf/ovirt-engine-proxy.conf.v2.in +++ b/packaging/conf/ovirt-engine-proxy.conf.v2.in @@ -22,7 +22,7 @@ RequestHeader unset Expect early </IfModule> - <Proxy ajp://localhost:@JBOSS_AJP_PORT@> + <Proxy ajp://127.0.0.1:@JBOSS_AJP_PORT@> # This is needed to make sure that connections to the application server # are recovered in a short time interval (5 seconds at the moment) # otherwise when the application server is restarted the web server will @@ -38,11 +38,11 @@ Redirect /ovirt-engine /ovirt-engine/ <Location /ovirt-engine/> - ProxyPass ajp://localhost:@JBOSS_AJP_PORT@/ + ProxyPass ajp://127.0.0.1:@JBOSS_AJP_PORT@/ </Location> <LocationMatch ^/(UserPortal($|/)|RHEVManagerWeb($|/)|OvirtEngineWeb($|/)|webadmin($|/)|docs($|/)|ovirt-engine-novnc/|ovirt-engine-novnc-main.html$|ovirt-engine-theme/|ovirt-engine-spicehtml5/|ovirt-engine-spicehtml5-main.html$|spice/|ca.crt$|engine.ssh.key.txt$|rhevm.ssh.key.txt$|ovirt-engine-attachment/)> - ProxyPassMatch ajp://localhost:@JBOSS_AJP_PORT@ + ProxyPassMatch ajp://127.0.0.1:@JBOSS_AJP_PORT@ <IfModule deflate_module> AddOutputFilterByType DEFLATE text/javascript text/css text/html text/xml text/json application/xml application/json application/x-yaml </IfModule> @@ -54,7 +54,7 @@ # Apache older than 2.4 don't copy the setting from the Proxy # directive: # - ProxyPass ajp://localhost:@JBOSS_AJP_PORT@/api timeout=3600 + ProxyPass ajp://127.0.0.1:@JBOSS_AJP_PORT@/api timeout=3600 <IfModule deflate_module> AddOutputFilterByType DEFLATE text/javascript text/css text/html text/xml text/json application/xml application/json application/x-yaml -- To view, visit http://gerrit.ovirt.org/17980 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I36ef2de20236f509b16b5bb7112d0f849e8e96e1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches