Keep Server Online
  
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
  
or
  
 
  
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
  
Thank You! Steffen
  
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |    |   
 | 
     Topic: ProxyPassMatch directive problems | 
 |   
| Author | 
  | 
 
testius
 
 
  Joined: 29 Jul 2009 Posts: 1
 
  | 
 Posted: Wed 29 Jul '09 2:10    Post subject: ProxyPassMatch directive problems | 
     | 
 
  | 
 
We have an environment with Apache 2.2.11 acting as front end to incoming connections to a Tomcat backend server. We are using the following directives in the http-ssl.conf, which works great when not trying to catch 403 errors:
 
 
SetEnvIf NextLabs EDLP 4.0.1 NLEDLPKEY=true
 
<VirtualHost _default_:443>
 
 
    #   General setup for the virtual host
 
    DocumentRoot "C:/xampp/htdocs/"
 
 
    ServerName localhost:443
 
    ServerAdmin admin@localhost
 
 
    ProxyRequests Off
 
 
    ProxyPassMatch / http://tomcat.nextlabs.com     <-- been having issues with this directive
 
    ProxyPassReverse / http://tomcat.nextlabs.com
 
 
As you can see we are using the mod_access (now called mod_authz_host in Apache 2.2) module to pass a variable called NLEDLPKEY so that only (Internet Explorer) clients with this variable could access Tomcat via SSL.  Also, I am trying to not only reverse proxy SSL connections, but also to redirect the 403 errors (for people without the variable) to a specified page (error_page.html). I have tried:
 
 
ProxyPassMatch "^[^(/error_page.html)]" http://tomcat.nextlabs.com and also tried
 
ProxyPassMatch “^(?!/error_page.html)”  http://tomcat.nextlabs.com 
 
 
to see if it is possible to redirect to the error page and not get the below message:
 
 
  Forbidden
 
 
  You don't have permission to access /RDS on this server.
 
 
  Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
 
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9 Server at apache-nextlabs Port 443
 
 
Any help would be appreciated
 
 
R. | 
 
  | 
 
| Back to top | 
 | 
 
 
 
 
 | 
 
 
 |  
 
 |  
  |   
 |