Reverse Proxy Pass - Not keeping port number

Topics: User Forum
Mar 22, 2013 at 6:21 PM
Hi everyone,

I have been trying to get a reverse proxy working on my company web server (IIS 6) to run Open Atrium on the same server but as a bitnami stack. The Apache server listens on port 8080

First, here is my .ini file:
RewriteCond %{HTTP_HOST}   portal\.domain\.com$  [I]
ProxyPass ^/(.*)$          http://portal.domain.com:8080/openatrium/$1
Now if I go to portal.domain.com it will say 'page not found' but it still shows a few links that would usually be shown, but in a basic HTML format. The address shown is http://portal.domain.com/openatrium/

If I go to portal.domain.com:8080/openatrium/ then of course it works. What am I missing to make portal.domain.com work properly?

Thanks for any help!
Mar 30, 2013 at 2:45 AM
Hi there,

1) maybe you can log all requests by enabling it on iirf_global.ini and see what's happening with each request.

RewriteLogLevel {0,1,2,3,4,5}
This directive sets the level of logging performed by IIRF. A higher number means more logging:

0 - no logging
1 - log messages for ini file load and parse events, as well as errors
2 - Level 1, plus two lines in the log for each successfully handled URL request
3 - verbose logging for each request.
4 - also emit trace on server variable replacement and string replacement
5 - also include messages on other minor events of interest. This is generally not useful for end users.
The default is zero. If you set an out-of-range value for the log level, you may not get logging. A non-zero value is useful for auditing and monitoring purposes, as well as for giving you that warm fuzzy feeling, knowing that something good is happening.

2) My best guess is your regular expression. I'm just guessing because I'm not good at it:

RewriteCond %{HTTP_HOST} portal.domain.com$ [I]
ProxyPass ^/(.*)$ http://portal.domain.com:8080/openatrium/$1

There is a '^' missing...
RewriteCond %{HTTP_HOST} ^portal.domain.com$ [I]
ProxyPass ^/(.*)$ http://portal.domain.com:8080/openatrium/$1