[ 
https://issues.apache.org/jira/browse/NIFI-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15866729#comment-15866729
 ] 

ASF GitHub Bot commented on NIFI-3355:
--------------------------------------

Github user jtstorck commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1508#discussion_r101148418
  
    --- Diff: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java
 ---
    @@ -590,28 +619,59 @@ private void configureConnectors(final Server server) 
throws ServerConfiguration
     
                 logger.info("Configuring Jetty for HTTPs on port: " + port);
     
    -            // add some secure config
    -            final HttpConfiguration httpsConfiguration = new 
HttpConfiguration(httpConfiguration);
    -            httpsConfiguration.setSecureScheme("https");
    -            httpsConfiguration.setSecurePort(props.getSslPort());
    -            httpsConfiguration.addCustomizer(new 
SecureRequestCustomizer());
    +            final List<Connector> serverConnectors = Lists.newArrayList();
     
    -            // build the connector
    -            final ServerConnector https = new ServerConnector(server,
    -                    new SslConnectionFactory(createSslContextFactory(), 
"http/1.1"),
    -                    new HttpConnectionFactory(httpsConfiguration));
    +            final Map<String, String> httpsNetworkInterfaces = 
props.getHttpsNetworkInterfaces();
    +            if (httpsNetworkInterfaces.isEmpty()) {
    --- End diff --
    
    The following comment from line 578 applies here as well. 
[https://github.com/apache/nifi/pull/1508/commits/88520369d910dff61892b86841dc9eab28bf03e3#r101147915](url)


> nifi.web.http(s).host set to 0.0.0.0 breaks request replication when clustered
> ------------------------------------------------------------------------------
>
>                 Key: NIFI-3355
>                 URL: https://issues.apache.org/jira/browse/NIFI-3355
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.0.0, 1.1.0, 1.1.1, 1.0.1
>            Reporter: Jeff Storck
>            Assignee: Jeff Storck
>
> The value of nifi.web.http(s).host is used as the node's address (combined 
> with the configured port) and is the address used for request replication.  
> When nodes are clustered, and 0.0.0.0 is used to bind Jetty to all network 
> interfaces, requests are replicated to 0.0.0.0:8080 (for example) and are 
> unable to be completed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to