Rewrite with https error

Discussion in 'Apache' started by kader, May 17, 2007.

  1. #1
    [Thu May 17 08:29:02 2007] [error] [client 10.152.48.222] mod_security: Warning. Pattern match "NIdent1" at POST_PAYLOAD. [hostname "ud1981win12"] [uri "/win2/Retail"]
    2007-May-17 8:29:2 - Received: [Thu May 17 08:29:02 2007] [error] [client 10.152.48.222] mod_security: Warning. Pattern match "NIdent1" at POST_PAYLOAD. [hostname "ud1981win12"] [uri "/win2/Retail"]
    2007-May-17 8:29:2 - Line contains our string query (NIdent1). Processing.
    2007-May-17 8:29:2 - httpd-guardian: Removing key 10.152.48.18



    Include conf/mod_security/modsec_global.conf
    Include conf/mod_security/modsec_app_rules.conf



    /opt/htdocs/blcdirect/Retail



    Hi Listers,

    We have Apache 2.0.X on the front end and Weblogic on backend.
    Till today on use Apache in mode ssl and rewrite (clear content) to Weblogic server like this:

    RewriteEngine on
    RewriteLogLevel 0
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]

    ...
    RewriteRule ^/win2/Retail$ http://weblogicServer:7001/Retail [P, L]
    ...

    This works fine.
    But now we have requirements to secure Apache-Weblogic communication. So we have had set up ssl on Weblogic Server and modified httpd.conf
    by adding s to https:

    RewriteRule ^/win2/Retail$ https://weblogicServer:7001/Retail [P, L]
    ...

    Unfortunately this doesn`t work I get the following error:

    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request POST /win2/Retail.

    Reason: Document contains no data


    So we removed the [P,L]
    Doing so, I `m redirected to weblogicServer:7001/Retail !
    We need to stay on Apache server not directed to Weblodic server.

    Can any gurus tell me what I'm missing in the conf file?

    Thank you in advance,


    Kader
     
    kader, May 17, 2007 IP