No Proxy For - Not working...AEM 6.1Sp2 w&wo CFP10, Java 8 | Community
Skip to main content
Level 4
August 9, 2017

No Proxy For - Not working...AEM 6.1Sp2 w&wo CFP10, Java 8

  • August 9, 2017
  • 2 replies
  • 3514 views

While validating the Apache HTTP Components Proxy Configuration I ran into issues excluding hosts.  I am hoping Adobe Staff or others in the community might offer suggestions or advice to solve this concern.

1. Enable HTTP Proxy via system/console/configMgr

2. (Issue 1) Do not 'Edit' the Apache HTTP Component Proxy Configuration, it doesn't accept/work

3. Create a new PID instance of Apache HTTP Component Proxy Configuration

4. Set the Enable HTTP Proxy checkbox on (true)

5. Set your proxy host

6. Set your proxy port

7. Add lines for your internal server 'No Proxy Server'

8. (Issue 2-n) Tried specifying 'No Proxy Server' in multiple ways; none worked

     a. Used dot-domain-dot-com (as specified in description of property)

     b. Tried surrounding with single-quotes, tried surrounding with double quotes

     c. Tried asterisk-dot-domain-dot-com (as described for Java Proxy properties definition)

How to see if (not) work:

1. Create a new logger via system/console/configMgr

2. Use + Logger Configuration

    a. Log Level: Debug

    b. Log File: logs/proxyserver.log

    c. Message pattern: (leave default)

    d. Logger: (specified these after using too broad 'org.apache.http')

          org.apache.http.impl.conn.HttpClientConnectionOperator

          org.apache.http.impl.conn.PoolingHttpClientConnectionManager

          org.apache.http.impl.execchain.MainClientExec

          org.apache.http.impl.execchain.RedirectExec

3. Use var/linkchecker.html to execute HTTPClient calls

4. View logs/proxyserver.log

5. Observe:

    a. org.apache.http.impl.conn.HttpClientConnectionOperator Connecting to <your-proxy-server-specified>/<its-resolved-ip>:<port>

    b. org.apache.http.impl.execchain.MainClientExec Opening connection {tls}->http://your-proxy-server-specified:<port>->https://www.<my-excluded-no-proxy-for-server>.com

I would expect that all my links that are in the No Proxy For domain are not passed through the proxy server.  This is not the case.  I've tested this with AEM 6.1SP2 with and without CFP10.  Additionally I've tested it by adding CQ_JVM_OPTS for proxy configuration.  The CQ_JVM_OPTS proxy options are not picked up either....ie. not immediately interpreted or added to the OSGi component (not a big deal) but it raised the concern (Issue 3) that there is not a different panel/property setting for HTTPS proxy:

# Proxy server configuration

CQ_JVM_OPTS="$CQ_JVM_OPTS -Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=80 -Dhttps.proxyHost=myhttpsproxyhost -Dhttps.proxyPort=443 -Dhttp.nonProxyHosts='locahost|*.mydomain.com|*.mysimilardomain.com'"

Advice and help appreciated!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 4
August 14, 2017

No reply for 5 days, so do I proceed to a support ticket?

VeenaVikraman
Community Advisor
Community Advisor
August 14, 2017

smacdonald2008kautuksahni​ Any help here ?

Level 4
September 28, 2017

This is fixed in CFP11.