logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reverse proxy problem with SAP Portal
Author
lavesa



Joined: 06 Jan 2006
Posts: 13

PostPosted: Fri 06 Jan '06 2:25    Post subject: Reverse proxy problem with SAP Portal Reply with quote

Hi all,

I've installed Apache 2.2 and have an odd problem with accessing particular URL's within the portal. It seems to me that it should not be a problem but it may be related to the portal specifically.

What I would like is for someone to look at the way I have the ProxyPass and ProxyPassReverse statements defined to see if I'm missing something.

The portal runs on port 50000 and the HTML documents I display are using relative links for CSS and GIF files. It's these files that are not being retrieved but if I look at the properties of the GIF files, it appears to have a proper URL.

Example:

http://portal.domain/irj/portal is properly being redirected to http://portal.domain:50000/irj/portal.

The gif that will not display is:

http://portal.domain/irj/go/km/docs/documents/ADP/Static%20HTML/images/ADP-Outside-Plant.gif

But, if I add the port 50000 it does display.

Here are the Virtual Host settings I'm using

Code:
############################## For Reverse Proxy
ProxyRequests off
ProxyPreserveHost On

<VirtualHost *:80>

ServerName portal.domain

ErrorLog logs/portal.domain.com-error_log
CustomLog logs/portal.domain.com-access_log common

RewriteEngine On
RewriteLog logs/portal.domain_unsecured_rewrite.log
RewriteLogLevel 9

<Directory />
Options None
AllowOverride None
</Directory>


ProxyPass /irj    http://portal.domain:50000/irj/
ProxyPassReverse /irj http://portal.domain:50000/irj/

ProxyPass /webdynpro    http://portal.domain:50000/webdynpro/
ProxyPassReverse /webdynpro http://portal.domain:50000/webdynpro/
###################


Any ideas would be greatly appreciated.

Thanks,

Andrew
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3049
Location: Hilversum, NL, EU

PostPosted: Fri 06 Jan '06 14:30    Post subject: Reply with quote

Try to put a trailing slash:

ProxyPass /irj/ ...
ProxyPassReverse /irj/ ...

ProxyPass /webdynpro/ ...
ProxyPassReverse /webdynpro/ ...

Not any rewrite rule somewhere that can cause it ?

You can try ProxyPreserveHost Off , who knows.


Steffen
Back to top


Reply to topic   Topic: Reverse proxy problem with SAP Portal View previous topic :: View next topic
Post new topic   Forum Index -> Apache