[users@httpd] mod_proxy + PHP as an output filter not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux