httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44622] New: POST fails to SSL vhost with proxy to HTTP backend
Date Tue, 18 Mar 2008 01:12:11 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44622

           Summary: POST fails to SSL vhost with proxy to HTTP backend
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: nickh@reactrix.com


I have an Apache server that uses mod_rewrite to proxy incoming requests to one
of several backend HTTP servers based on incoming request headers.  Most
requests work correctly but one particular multipart/form-data POST always
fails if the vhost accepting the request is using SSL.  One of the requests
that works fine is another multipart/form-data POST formatted in a very similar
way.

I have reproduced the error using Apache 2.2.3 from CentOS 5.1 (RPM version
httpd-2.2.3-11.el5.centos) and with a fresh RPM build from the current 2.2.8
source.

The server configuration contains the following (some server and log paths
changed):

Listen 30100
<VirtualHost _default_:30100>
    ServerName server.reactrix.com
    ErrorLog /path/to/logs/apache-error_log
    CustomLog /path/to/logs/apache-access_log reactrix

    SSLEngine on
    SSLVerifyClient require
    SSLVerifyDepth 10
    SSLCertificateFile /path/to/ssl/server.crt
    SSLCertificateKeyFile /path/to/ssl/server.key
    SSLCACertificatePath /path/to/ssl/

    RewriteEngine on
    RewriteOptions inherit

    <Directory /path/to/git/>
        Options -indexes
        order allow,deny
        allow from all
    </Directory>
</VirtualHost>

Listen 8100
<VirtualHost _default_:8100>
    ServerName server.reactrix.com
    ErrorLog /path/to/logs/apache-error_log
    CustomLog /path/to/logs/apache-access_log reactrix

    RewriteEngine on
    RewriteOptions inherit

    <Directory /path/to/git/>
        Options -indexes
        order allow,deny
        allow from all
    </Directory>
</VirtualHost>

The request I am trying to send (some headers removed) is:

POST http://server.reactrix.com/path/to/upload
Host: server.reactrix.com
Content-Length: 465
Content-Type: multipart/form-data; boundary=xYzZY

--xYzZY
Content-Disposition: form-data; name="upload[handle]"

handle
--xYzZY
Content-Disposition: form-data; name="upload[display_id]"

1
--xYzZY
Content-Disposition: form-data; name="upload[controller_id]"

1
--xYzZY
Content-Disposition: form-data; name="upload[file]"; filename="/tmp/file.png"
Content-Type: application/gzip

ë
¼Cçå’âb``àõôp  b``”²ïp †¾×݀T°§‹cHÅ­·
   ¾úçòò/` 4¤3¬a`ìOõX  âzºú¹¬sJh\³ûuŒ
--xYzZY--

When I send the above request to the SSL listener on port 30100, I get the
following response (some headers removed):

HTTP/1.1 404 Not Found
Connection: close
Date: Tue, 18 Mar 2008 00:21:42 GMT
Via: 1.1 127.0.0.1:30100
Content-Length: 0
Content-Type: text/plain
Client-Date: Tue, 18 Mar 2008 00:21:15 GMT
Client-Response-Num: 1

When I send the same request to the listener on port 8100, I get the following
response (some headers removed):

HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: close
Date: Tue, 18 Mar 2008 00:24:59 GMT
Via: 1.1 127.0.0.1:8100
Server: Mongrel 1.1.2
Content-Length: 16
Content-Type: text/html
Client-Date: Tue, 18 Mar 2008 00:24:32 GMT
Client-Response-Num: 1
Set-Cookie: _session_id=3368cec4d8f4f2c3f7f8e1ecc63dc86a; path=/
Status: 200 OK

Upload succeeded


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message