httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 61cygni <>
Subject [users@httpd] unrecognized ProxyPassReverseCookiePath and ProxyPassReverseCookieDomain
Date Sun, 03 Oct 2004 20:39:25 GMT
Hi everyone,
I'm trying to configure Apache 2.0.52 as a reverse proxy. My Apache runs 
on Windows XP.
I read the excellent note by Nick Kew in apacheweek 'Running a Reverse 
Proxy With Apache'. I applied everything that was in it (in particular, 
using mod_proxy_html 2.3 for URL rewriting).
However I came across a problem with cookies. Cookies do not cross the 
reverse proxy, which leads to web application malfunction.
I'm trying to use ProxyPassReverseCookiePath and 
ProxyPassReverseCookieDomain to correct this problem.
I struggle with two issues:
- first I don't know how to properly combine the <Location> XML tag 
alternative proposed by Nick Kew and the ProxyPassReverseCookiePath and 
ProxyPassReverseCookieDomain directives, which is not described in his 
- secondly, whether I include the directives in the Location tag or 
whether I leave them outside, I have a problem getting these directives 
recognized. Restarting Apache leads to error:
Syntax error on line 988 of C:/Program Files/Apache 
Invalid command 'ProxyPassReverseCookiePath', perhaps mis-spelled or 
defined by a module not included in the server configuration.

I would be most grateful if someone could give me some hints as to the 
reason for this symptom.

Additional information (extracts from my httpd.conf file):
#Active modules:
LoadModule access_module modules/
LoadModule actions_module modules/
LoadModule alias_module modules/
LoadModule asis_module modules/
LoadModule auth_module modules/
LoadModule autoindex_module modules/
LoadModule cgi_module modules/
LoadModule dir_module modules/
LoadModule env_module modules/
LoadModule headers_module modules/
LoadModule imap_module modules/
LoadModule include_module modules/
LoadModule isapi_module modules/
LoadModule log_config_module modules/
LoadModule mime_module modules/
LoadModule proxy_module modules/
LoadModule proxy_connect_module modules/
LoadModule proxy_http_module modules/
LoadModule proxy_ftp_module modules/
LoadModule negotiation_module modules/
LoadModule setenvif_module modules/
LoadModule userdir_module modules/
LoadModule usertrack_module modules/
LoadModule deflate_module modules/
LoadFile C:\Installation\Tools\apache_tools\zlib-1.2.1.win32\bin\zlib1.dll
LoadFile C:\Installation\Tools\apache_tools\iconv-1.9.1.win32\lib\iconv.dll
LoadModule proxy_html_module modules/

#reverse proxy parameters
ProxyRequests Off
ProxyPass /test/

<Location /test/>
   ProxyPassReverse /
   SetOutputFilter proxy-html
   ProxyHTMLURLMap / /test/
   ProxyHTMLURLMap /test /test
   ProxyHTMLExtended Off
   RequestHeader unset Accept-Encoding
   # the following is unrecognised
   #ProxyPassReverseCookiePath /

# the following two lines are unrecognised
#ProxyPassReverseCookieDomain <my  IP for the outside world>
#ProxyPassReverseCookiePath / /test/

ProxyPass /tools/

<Location /tools/>
   ProxyPassReverse /
   SetOutputFilter proxy-html
   ProxyHTMLURLMap / /tools/
   ProxyHTMLURLMap /tools /tools
   ProxyHTMLExtended Off
   RequestHeader unset Accept-Encoding

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