httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R Mills" <rebe...@newcars.com>
Subject [users@httpd] mod_proxy + PHP as an output filter not working
Date Wed, 17 Aug 2005 23:56:45 GMT
Kind of an interesting problem:
I am using mod_proxy to reverse proxy a site.  In addition I am trying to
use PHP as an output filter to do session tracking on the proxy server.
PHP by itself as an output filter works fine.  But when it is combined with
mod_proxy, it does not appear to be called.
 
Anyone have any idea why, and is there anything I can tweak to get it to
work?
Here are the relevant sections from my config file (with domains renamed to
example.com and proxyexample.com).
 
Thanks,
-Rebekah
 
<VirtualHost *>
## it works here - the contents of page_prepend.inc are processed with each
request
## note: not using mod_proxy, no proxying for this vhost
##
    ServerName search.example.com
    DocumentRoot /etc/apache/htdocs

    php_value include_path ".:/etc/apache/phpmods"
    php_value auto_prepend_file "/etc/apache/page_prepend.inc"
    SetOutputFilter PHP
    SetInputFilter PHP
</VirtualHost>
 
<VirtualHost *>
## it doesn't work here
## code I have in page_prepend.inc is never getting called
##
 
 ServerName proxyexample.example.com
 
 # Pass requests for local server to remote server
 ProxyPass / http://www.proxyexample.com/
 # Rewrite headers
 ProxyPassReverse / http://www.proxyexample.com/
 
 # cookie paths remain the same
 ProxyPassReverseCookiePath / /
 # translate cookies for remote server domain to vhost domain
 ProxyPassReverseCookieDomain proxyexample.example.com proxyexample.com
 
  php_value include_path ".:/etc/apache/phpmods"
  php_value auto_prepend_file "/etc/apache/page_prepend.inc"
  SetOutputFilter PHP  
  SetInputFilter PHP
</VirtualHost>


Mime
View raw message