private void configureProxiedConnector(HttpConfiguration httpConfig) {
        // Check to see if we are deployed behind a proxy
        // Refer to http://eclipse.org/jetty/documentation/current/configuring-connectors.html
        if (ADMIN_CONSOLE_FORWARDED.getValue()) {
            ForwardedRequestCustomizer customizer = new ForwardedRequestCustomizer();
            // default: "X-Forwarded-For"
            String forwardedForHeader = ADMIN_CONSOLE_FORWARDED_FOR.getValue();
            if (forwardedForHeader != null) {
                customizer.setForwardedForHeader(forwardedForHeader);
            }
            // default: "X-Forwarded-Server"
            String forwardedServerHeader = ADMIN_CONSOLE_FORWARDED_SERVER.getValue();
            if (forwardedServerHeader != null) {
                customizer.setForwardedServerHeader(forwardedServerHeader);
            }
            // default: "X-Forwarded-Host"
            String forwardedHostHeader = ADMIN_CONSOLE_FORWARDED_HOST.getValue();
            if (forwardedHostHeader != null) {
                customizer.setForwardedHostHeader(forwardedHostHeader);
            }
            // default: none
            String hostName = ADMIN_CONSOLE_FORWARDED_HOST_NAME.getValue();
            if (hostName != null) {
                customizer.setHostHeader(hostName);
            }

            httpConfig.addCustomizer(customizer);
        }
    }
Returns true if the Jetty server needs to be restarted. This is usually required when
certificates are added, deleted or modified or when server ports were modified.

@return true if the Jetty server needs to be restarted.
xmppserver/src/main/java/org/jivesoftware/openfire/container/AdminConsolePlugin.java