Skip to Content
0
Jun 22, 2005 at 02:11 PM

reverse proxy with apache2

74 Views

Hi folks,

I have a huge problem here. I have a apache 2.0.50 on a Linux system that is to act as a reverse proxy for an enterprise portal. I have set up the apache to do reverse proxying and so far I have made first success. I can get to the login page of the portal and I even managed to make it show the images. The problem is, when I try to log on to the portal I am always send back to the logon page in the very instance. If I enter the wrong logon information I see the authorization failed text, but when I enter correct information I only see the logon page again.

I will put tyhe relevant part of my httpd.conf to this message and hope someone can point me to the right location or maybe even tell me what I'm doing wrong.

And ny the way, the portal itself works perfectky when connected directly.

Kind regards,

Christian Guenther

  1. Reverse proxy configuration ############################################

NameVirtualHost 172.30.210.96

<VirtualHost 172.30.210.96>

ServerAdmin webmaster@external.de

ServerName host.external.de

  1. SSL is turned off at the moment

SSLEngine Off

SSLCertificateFile /etc/apache2/ssl.crt/proxy.cert.cert

SSLCertificateKeyFile /etc/apache2/ssl.key/proxy.cert.key

  1. Set up as a proxy for internal SAP systems

ProxyRequests Off

ProxyPreserveHost Off

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

  1. IRJ

<Location /irj/>

ProxyPass http://host.internal.lan:8001/irj/

ProxyPassReverse http://host.internal.lan:8001/irj/

  1. rewriting rules for proxy

RewriteEngine On

RewriteCond % \.jsp RewriteRule ^(.+) % [P] RewriteCond % \.servlet

RewriteRule ^(.+) %

  1. Portal
  2. rewriting rules for proxy
[P] </Location> <Location /> ProxyPass http://host.internal.lan:8001/ ProxyPassReverse http://host.internal.lan:8001/ RewriteEngine On RewriteCond % \.jsp RewriteRule ^(.+) % [P]

RewriteCond % \.servlet

RewriteRule ^(.+) % [P]

</Location>

</VirtualHost>