httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Moser <>
Subject [users@httpd] Problems with mod_dav when using a reverse-proxy with SSL and mod_rewrite
Date Mon, 30 Dec 2002 10:42:21 GMT


We are encountering problems with COPY- and MOVE-requests (mod_dav enabled) when
 the requests are redirected by a reverse-proxy (mod_ssl, mod_rewrite). We have
the following setup at our site:

A SSL-enabled webserver acts as reverse-proxy for incoming dav-requests. SSL is
used to avoid sending cleartext-passwords over the net. The requests are
forwarded to another webserver with mod_dav enabled using mod_rewrite. This
webserver is listening on http-requests on a different port than the ssl-port (443).

We used the tool 'cadaver' to test the setup. When connecting to the mod_dav
enabled webserver directly, the setup seems fine, but when connecting via the
reverse-proxy, the COPY and MOVE requests fail with the following error:

dav:/upload/> copy index.html index1.html
Copying `/upload/' to
`/upload/':  failed:
502 Bad Gateway

Some investigation showed that COPY uses a 'Destination'-field in the
http-header. According to the specification, this field contains a URI, in our
case ''.

After modifying the logformat of the dav-webserver, we could see that the
destination-field is not rewritten by mod_rewrite:

   . - smoser [29/Dec/2002:21:45:56 +0100] "PROPFIND
/upload/ HTTP/1.1" 404 249 - HOST: - smoser [29/Dec/2002:21:45:56 +0100] "COPY
/upload/ HTTP/1.1" 502 259 DESTINATION: HOST:

The 'Host'-field is rewritten by mod_rewrite, but the 'Destination'-field not.
We tried to solve the problem by adding a 'ServerAlias'-directive to the
corresponding vhost, but that did not help. Probably the operation fails because
protocols and ports do not match.

Is there any way to rewrite the destination-field with mod_rewrite? Is anybody
using a SSL-reverse-proxy where the MOVE- and COPY-requests work? Any help is
highly appreciated

Simon Moser 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message