1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache 2.2+ SSL + Jboss

Discussion in 'Apache' started by Sugan_p, Mar 7, 2012.

  1. #1
    Hi,

    I am having problem with configuring apache SSL with jboss. I am getting "page cannot be displayed error"

    Logs:

    [Wed Mar 07 14:24:18 2012] [info] Initial (No.1) HTTPS request received for child 247 (server portal-test.mpaoverlay.com:443)
    [Wed Mar 07 14:24:18 2012] [debug] mod_proxy_balancer.c(46): proxy: BALANCER: canonicalising URL //test/
    [Wed Mar 07 14:24:18 2012] [debug] proxy_util.c(1949): proxy: BALANCER: retrying the worker for (localhost)
    [Wed Mar 07 14:24:18 2012] [debug] proxy_util.c(1955): proxy: BALANCER: worker for (localhost) has been marked for retry
    [Wed Mar 07 14:24:18 2012] [debug] mod_proxy_balancer.c(280): proxy: BALANCER: Found value (null) for stickysession JSESSIONID|jsessionid
    [Wed Mar 07 14:24:18 2012] [debug] mod_proxy_balancer.c(1012): proxy: Entering byrequests for BALANCER (balancer://test)
    [Wed Mar 07 14:24:18 2012] [debug] mod_proxy_balancer.c(1055): proxy: byrequests selected worker "https://localhost:8080/mpacp" : busy 0 : lbstatus 1
    [Wed Mar 07 14:24:18 2012] [debug] mod_proxy_balancer.c(581): proxy: BALANCER (balancer://test) worker (https://localhost:8080/mpacp) rewritten to https://localhost:8080/mpacp/
    [Wed Mar 07 14:24:18 2012] [debug] mod_proxy.c(1020): Running scheme balancer handler (attempt 0)
    [Wed Mar 07 14:24:18 2012] [debug] mod_proxy_http.c(1973): proxy: HTTP: serving URL https://localhost:8080/mpacp/
    [Wed Mar 07 14:24:18 2012] [debug] proxy_util.c(2011): proxy: HTTPS: has acquired connection for (localhost)
    [Wed Mar 07 14:24:18 2012] [debug] proxy_util.c(2067): proxy: connecting https://localhost:8080/mpacp/ to localhost:8080
    [Wed Mar 07 14:24:18 2012] [debug] proxy_util.c(2193): proxy: connected /mpacp/ to localhost:8080
    [Wed Mar 07 14:24:18 2012] [debug] proxy_util.c(2444): proxy: HTTPS: fam 2 socket created to connect to localhost
    [Wed Mar 07 14:24:18 2012] [debug] proxy_util.c(2576): proxy: HTTPS: connection complete to 127.0.0.1:8080 (localhost)
    [Wed Mar 07 14:24:18 2012] [info] [client 127.0.0.1] Connection to child 0 established (server portal-test.mpaoverlay.com:443)
    [Wed Mar 07 14:24:18 2012] [info] Seeding PRNG with 136 bytes of entropy
    [Wed Mar 07 14:24:18 2012] [debug] ssl_engine_kernel.c(1866): OpenSSL: Handshake: start
    [Wed Mar 07 14:24:18 2012] [debug] ssl_engine_kernel.c(1874): OpenSSL: Loop: before/connect initialization
    [Wed Mar 07 14:24:18 2012] [debug] ssl_engine_kernel.c(1874): OpenSSL: Loop: SSLv2/v3 write client hello A
    [Wed Mar 07 14:24:39 2012] [debug] ssl_engine_io.c(1908): OpenSSL: I/O error, 7 bytes expected to read on BIO#7dd9b0 [mem: 87e810]
    [Wed Mar 07 14:24:39 2012] [debug] ssl_engine_kernel.c(1903): OpenSSL: Exit: error in SSLv2/v3 read server hello A

    [Wed Mar 07 14:24:39 2012] [info] [client 127.0.0.1] SSL Proxy connect failed
    [Wed Mar 07 14:24:39 2012] [info] [client 127.0.0.1] Connection closed to child 0 with abortive shutdown (server portal-test.mpaoverlay.com:443)
    [Wed Mar 07 14:24:39 2012] [error] (502)Unknown error: proxy: pass request body failed to 127.0.0.1:8080 (localhost)
    [Wed Mar 07 14:24:39 2012] [error] [client 172.20.43.4] proxy: Error during SSL Handshake with remote server returned by /
    [Wed Mar 07 14:24:39 2012] [error] proxy: pass request body failed to 127.0.0.1:8080 (localhost) from 172.20.43.4 ()
    [Wed Mar 07 14:24:39 2012] [debug] proxy_util.c(2029): proxy: HTTPS: has released connection for (localhost)
    [Wed Mar 07 14:24:39 2012] [debug] mod_proxy_balancer.c(622): proxy_balancer_post_request for (balancer://test)
    [Wed Mar 07 14:24:39 2012] [debug] ssl_engine_kernel.c(1884): OpenSSL: Write: SSL negotiation finished successfully
    [Wed Mar 07 14:24:39 2012] [info] [client 172.20.43.4] Connection closed to child 247 with standard shutdown (server portal-test.mpaoverlay.com:443)

    httpd-ssl.conf
    --------------

    <VirtualHost _default_:443>
    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2.22/htdocs"
    ServerName portal-test.mpaoverlay.com:443
    ServerAdmin admin@ixisam.net
    SSLEngine on
    SSLProxyEngine on

    SSLCertificateFile "C:/Program Files/Apache Software Foundation/Apache2.2.22/conf/portal-test.mpaoverlay.com_cert.pem"

    ProxyRequests off
    ProxyPass /server-status !
    ProxyPass /balance-manager !

    <Proxy balancer://test>
    Order deny,allow
    Allow from all
    BalancerMember https://localhost:8080/mpacp route=node1
    </Proxy>


    ProxyPass / balancer://test/ lbmethod=byrequests stickysession=JSESSIONID|jsessionid
    ProxyPassReverse / balancer://test/
    ProxyStatus On
    </VirtualHost>

    I searched a lot in google but couldn't find anything. Please help me.
     
    Sugan_p, Mar 7, 2012 IP
  2. Zoti Media Group

    Zoti Media Group Notable Member

    Messages:
    1,598
    Likes Received:
    113
    Best Answers:
    2
    Trophy Points:
    265
    Digital Goods:
    2
    #2
    restart apache
     
    Zoti Media Group, Mar 7, 2012 IP
  3. Sugan_p

    Sugan_p Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have restarted the apache and tried but still the same error
     
    Sugan_p, Mar 7, 2012 IP
  4. simona86

    simona86 Member

    Messages:
    141
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #4
    That is normal mod_ssl of Apache httpd decrypts the data and send them via mod_jk uncrypted to Tomcat.
     
    simona86, Mar 16, 2012 IP