Discussion:
Zenoss + Apache mod_proxy
Shane Scott
2011-10-18 23:53:51 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/61928#61928

--------------------------------------------------------------
Bruno:

Did you figure this out? I can only post an example of what we use, I can't claim to understand Apache rewrite rules well.

Best,
--Shane W. Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61928#61928]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dhopp
2011-10-19 00:07:18 UTC
Permalink
dhopp [http://community.zenoss.org/people/dhopp] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/61937#61937

--------------------------------------------------------------
I'd have to test this more but you may be able to change it to:

RewriteEngine On
RewriteRule ^/monitor/(.*) http://community.zenoss.org/message/61928#61928 http://5.191.28.77:8080/VirtualHostBase/http/%{SERVER_NAME}:80/$1  [P,L]

Give that a try and let me know if it works.  If it doesn't I can spend a few minutes figuring out the exact proxy/proxypass directives to do what you need.

--Dennis
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61937#61937]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dhopp
2011-10-19 00:11:39 UTC
Permalink
dhopp [http://community.zenoss.org/people/dhopp] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/61938#61938

--------------------------------------------------------------
oops...

You might need:

RewriteEngine On
RewriteRule ^*/monitor/*(.*) http://community.zenoss.org/61928#61928 http://5.191.28.77:8080/VirtualHostBase/http/%{SERVER_NAME}:80*/monitor/*$1  [P,L]

--Dennis
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61938#61938]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-10-19 18:25:19 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/61989#61989

--------------------------------------------------------------
Sorry dhopp, but not works..

This is the error when I try to access http://mydomain.com/monitor/ http://mydomain.com/monitor/

Loading Image... Loading Image...
Here is my apache config.
NOTE: I have an OTRS system running at same machine that runs Zenoss. But it's doesn't matter.

+<VirtualHost *:80>+
+    Documentroot /var/www+
+    ServerName mydomain.com+
+    ServerAlias *.mydomain.com+
+    ServerAdmin mailto:***@mydomain.com ***@mydomain.com+

+    ProxyRequests Off+
+    ProxyVia On+
+    ProxyPreserveHost On+

+    <Proxy *>+
+        Order deny,allow+
+        Allow from all+
+    </Proxy>+

+    <Directory /var/www>+
+        Order deny,allow+
+        Allow from all+
+    </Directory>+

+    RewriteEngine on+
+    RewriteRule ^/ajuda$ http://mydomain.com/otrs/public.pl?Action=PublicFAQZoom;ItemID=5 http://mydomain.com/otrs/public.pl?Action=PublicFAQZoom;ItemID=5 [NE]+
+    RewriteRule ^/monitor/(.*) http://5.191.28.77:8080/VirtualHostBase/http/%{SERVER_NAME}:80/monitor/$1  [P,L]+

+    <Location /painel>+
+        ProxyPass http://5.191.28.77/otrs/index.pl http://5.191.28.77/otrs/index.pl+
+        ProxyPassReverse http://5.191.28.77/otrs/index.pl http://5.191.28.77/otrs/index.pl+
+    </Location>+

+    <Location /cliente>+
+        ProxyPass http://5.191.28.77/otrs/customer.pl http://5.191.28.77/otrs/customer.pl+
+        ProxyPassReverse http://5.191.28.77/otrs/customer.pl http://5.191.28.77/otrs/customer.pl+
+    </Location>+

+    <Location /otrs-web>+
+        ProxyPass http://5.191.28.77/otrs-web http://5.191.28.77/otrs-web+
+        ProxyPassReverse http://5.191.28.77/otrs-web http://5.191.28.77/otrs-web+
+    </Location>+

+    <Location /otrs>+
+        ProxyPass http://5.191.28.77/otrs http://5.191.28.77/otrs+
+        ProxyPassReverse http://5.191.28.77/otrs http://5.191.28.77/otrs+
+    </Location>+

+</VirtualHost>+
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61989#61989]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dhopp
2011-10-20 15:09:55 UTC
Permalink
dhopp [http://community.zenoss.org/people/dhopp] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/62013#62013

--------------------------------------------------------------
Whatever %{SERVER_NAME} equates to is that resolvable in DNS?

You can try to take out the RewriteRule for /monitor and replace it with something like:

ProxyPass /monitor http://5.191.28.77:8080/VirtualHostBase/http/5.191.28.77:80/VirtualHostRoot/ http://5.191.28.77:8080/VirtualHostBase/http/5.191.28.77:80/VirtualHostRoot/
ProxyPassReverse /monitor http://5.191.28.77:8080/VirtualHostBase/http/5.191.28.77:80/VirtualHostRoot/ http://5.191.28.77:8080/VirtualHostBase/http/5.191.28.77:80/VirtualHostRoot/

Or possibly

<Location /monitor>
ProxyPass http://5.191.28.77:8080/VirtualHostBase/http/5.191.28.77:80/VirtualHostRoot/ http://5.191.28.77:8080/VirtualHostBase/http/5.191.28.77:80/VirtualHostRoot/
ProxyPassReverse http://5.191.28.77:8080/VirtualHostBase/http/5.191.28.77:80/VirtualHostRoot/ http://5.191.28.77:8080/VirtualHostBase/http/5.191.28.77:80/VirtualHostRoot/
</Location>

--Dennis
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62013#62013]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-10-20 17:33:28 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/62036#62036

--------------------------------------------------------------
Whatever %{SERVER_NAME} equates to is that resolvable in DNS?
Yes. Servername is a FQDN resolvable by DNS.

I have tried to use the Location with proxy, but not works too. When I put mydomain.com/monitor , the URL is changed to mydomain.com/zport/dmd/ and the Not Found error is showed:


Loading Image... Loading Image...
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62036#62036]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
John Fisher
2011-12-02 20:28:55 UTC
Permalink
John Fisher [http://community.zenoss.org/people/jfisher] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/62992#62992

--------------------------------------------------------------
Bruno, I am working  on the same problem.

* Problem:
  Proxy Zenoss behind Apache.
  Apache serves requests to  http://myserver:80/oac http://myserver:80/oac, and redirects everything else to Zope
  Users see a URL without the port number.

* Rewrite didn't work at all.

* ProxyPass worked, but with erorrs. "Unable to connect to server."

* ProxyPass in httpd.conf:
ServerName 10.2.0.85

ProxyPass /oac !
ProxyPass / http://10.2.0.85:8080/ http://10.2.0.85:8080/
ProxyPassReverse / http://10.2.0.85:8080/ http://10.2.0.85:8080/

* References:
This post makes it sound like this has never worked? 
http://community.zenoss.org/message/5145#5145#5145 http://community.zenoss.org/message/5145#5145

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyrequests http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyrequests
http://betabug.ch/blogs/ch-athens/437 http://betabug.ch/blogs/ch-athens/437
http://wiki.zope.org/zope2/ZopeAndApache http://wiki.zope.org/zope2/ZopeAndApache

* Considerations:
In our case, we are not willing to change the Zope configuration underneath Zenoss, or any of the Zenoss configuration.
We just want a wrapper around standard Zenoss.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62992#62992]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
John Fisher
2011-12-02 21:35:33 UTC
Permalink
John Fisher [http://community.zenoss.org/people/jfisher] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/62993#62993

--------------------------------------------------------------
*Whoa!  B-)*

I think this works:

1. Load *mod-proxy   mod-proxy-http   mod-proxy-html*   in Apache 2.2
Post by John Fisher
ProxyPass /oac !
ProxyPass / http://10.2.0.85:8080/ http://10.2.0.85:8080/
ProxyPassReverse / http://10.2.0.85:8080/ http://10.2.0.85:8080/
ProxyPassReverseCookieDomain 10.2.0.85:8080 10.2.0.85
ProxyPassReverseCookiePath / /oac
* Note:
I am not at all sure the Cookie parameters are useful.

*When you try it what do you get?*
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62993#62993]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-03 00:20:35 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/62995#62995

--------------------------------------------------------------
Not works:

h1. Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request +http://www.infracerta.com.br/zport/dmd/ GET /zport/dmd/+.
Reason: *DNS lookup failure for: 5.191.28.77:8080zport*
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62995#62995]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
John Fisher
2011-12-03 00:59:02 UTC
Permalink
John Fisher [http://community.zenoss.org/people/jfisher] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63011#63011

--------------------------------------------------------------
Bruno it looks like you are missing a slash?

Reason: *DNS lookup failure for: 5.191.28.77:8080zport  should be*
*5.191.28.77:8080/zport  actually zport shouldn't be picked up at all for a DNS lookup.*
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63011#63011]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-03 11:04:47 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63013#63013

--------------------------------------------------------------
Yes, you are right. It works, but, only for my FQDN address mydomain.com/ not for mydomain.com*/monitor.* I need access zenoss through mydomain.com*/monitor*.

If I try to access that address (with /monitor at the end) with this new configuration, the bellow error is showed:

h1. Not Found
The requested URL /monitor was not found on this server.
ProxyPass /monitor !
ProxyPass / http://5.191.28.77:8080/ http://5.191.28.77:8080/
ProxyPassReverse / http://5.191.28.77:8080/ http://5.191.28.77:8080/
ProxyPassReverseCookieDomain 5.191.28.77:8080 5.191.28.77
ProxyPassReverseCookiePath / /monitor
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63013#63013]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-03 16:04:19 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63017#63017

--------------------------------------------------------------
Looking at the apache docs: http://httpd.apache.org/docs/2.1/mod/mod_proxy.html#proxypass http://httpd.apache.org/docs/2.1/mod/mod_proxy.html#proxypass
ProxyPass /monitor !
The ! directive is useful in situations where you don't want to reverse-proxy a subdirectory, +e.g.+
ProxyPass /mirror/foo/i !
ProxyPass /mirror/foo http://backend.example.com http://backend.example.com
will proxy all requests to /mirror/foo to backend.example.com +except+ requests made to /mirror/foo/i.
So I think your configuration is telling apache to proxy everything EXCEPT /monitor, which is exactly the one your struggling with. I think if you just drop that line (and perhaps the last line about reverse cookie path.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63017#63017]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-03 16:33:12 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63018#63018

--------------------------------------------------------------
Yeah, I know that. But even if if try to remove that line, it works very well with mydomain.com without */monitor*

If I try to do the bellow config, doesn't work too, as I've posted at begining of this tread.

ProxyPass /monitor http://5.191.28.77:8080/ http://5.191.28.77:8080/
ProxyPassReverse /monitor http://5.191.28.77:8080/ http://5.191.28.77:8080/
ProxyPassReverseCookieDomain 5.191.28.77:8080 5.191.28.77
h1. Not Found
The requested URL /zport/dmd/ was not found on this server.


I think Apache + Zenoss proxy doesn't works with a diferent location than / at end of the FQDN...
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63018#63018]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-03 17:05:01 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63019#63019

--------------------------------------------------------------
Suppose the local server has address http://example.com/; http://example.com/; then
ProxyPass /mirror/foo/ http://backend.example.com/ http://backend.example.com/
will cause a local request for http://example.com/mirror/foo/bar http://example.com/mirror/foo/bar to be internally converted into a proxy request to http://backend.example.com/bar http://backend.example.com/bar.
ProxyPass /monitor http://5.191.28.77:8080/monitor http://5.191.28.77:8080/monitor
ProxyPassReverse /monitor http://5.191.28.77:8080/monitor http://5.191.28.77:8080/monitor
ProxyPassReverseCookieDomain 5.191.28.77:8080 5.191.28.77
Without the trailing monitor in second URL, I believe its actually translating the request to http://5.191.28.77:8080 http://5.191.28.77:8080
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63019#63019]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-03 17:16:15 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63020#63020

--------------------------------------------------------------
NM... I think I mis-understood your original post.. You actually want /monitor dropped from the translated url as you are trying to present zenoss via the "/monitor" url mapping on your apache box?

If that is the case, perhaps the issue is that when you hit a zenoss box on / it redirects to /zport/dmd/.  Maybe something more like this(untested)?
ProxyPass /monitor http://5.191.28.77:8080/zport/dmd/
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63020#63020]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-03 19:23:10 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63021#63021

--------------------------------------------------------------
Yes, I've tried that but not works...
ProxyPass /monitor http://5.191.28.77:8080/zport/dmd/ http://5.191.28.77:8080/zport/dmd/
When I try to access mydomain.com/monitor, the URL is changed to http://mydomain.com/zport/acl_users/cookieAuthHelper/login_form?came_from=http%3A//mydomain.com/zport/dmd/ http://mydomain.com/zport/acl_users/cookieAuthHelper/login_form?came_from=http%3A//mydomain.com/zport/dmd/ and the bellow error is showed:


*Not Found*

The requested URL /zport/acl_users/cookieAuthHelper/login_form was not found on this server.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63021#63021]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-03 19:39:45 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63022#63022

--------------------------------------------------------------
ProxyPass /monitor http://5.191.28.77:8080/zport http://5.191.28.77:8080/zport
ProxyPassReverse /monitor http://5.191.28.77:8080/zport http://5.191.28.77:8080/zport
and then hitting http://mydomain.com/monitor/dmd http://mydomain.com/monitor/dmd?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63022#63022]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-04 13:37:58 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63024#63024

--------------------------------------------------------------
Not works...
ProxyPass /monitor http://5.191.28.77:8080/zport http://5.191.28.77:8080/zport
ProxyPassReverse /monitor http://5.191.28.77:8080/zport http://5.191.28.77:8080/zport
ProxyPassReverseCookieDomain 5.191.28.77:8080 5.191.28.77
When I hit http://mydomain.com/monitor/dmd mydomain.com/monitor/dmd, the URL is changed to http://mydomain.com/zport/acl_users/cookieAuthHelper/login_form?came_from=http%3A//mydomain.com/zport/dmd http://mydomain.com/zport/acl_users/cookieAuthHelper/login_form?came_from=http%3A//mydomain.com/zport/dmd and the bellow error is showed (same behavior of previous test):


*Not Found*

The requested URL /zport/acl_users/cookieAuthHelper/login_form was not found on this server.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63024#63024]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-04 20:09:33 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63029#63029

--------------------------------------------------------------
Post by bruno.galindro
RewriteEngine on
RewriteRule ^/monitor($|/.*) \
http://127.0.0.1:8080/VirtualHostBase/ http://127.0.0.1:8080/VirtualHostBase/\
http/%{SERVER_NAME}:80/monitor/VirtualHostRoot/_vh_monitor$1 [L,P]
ProxyPassReverse /monitor /zport
However that quickly uncovered that there are some hard coded items in page contents that have "/zport/*". So unless you get into parsing the actual response body, I'm not sure how you use "/monitor".

Additionally many of the CSS and JS references are linked directly too root, not even off "/zport". Rather annoying...

If your willing to let "/zport" and "/++resource*" be mapped to Zenoss instead of "/monitor" I was able to get it work with the following. I lifted most of info about the first rule from http://wiki.zope.org/zope2/ZopeAndApache http://wiki.zope.org/zope2/ZopeAndApache
Post by bruno.galindro
RewriteEngine on
RewriteRule ^/zport($|/.*) \
http://5.191.28.77:8080/VirtualHostBase/ http://5.191.28.77:8080/VirtualHostBase/\
http/%{SERVER_NAME}:80/zport/VirtualHostRoot/_vh_zport$1 [L,P]
RewriteRule ^/(\+\+resource.*) http://5.191.28.77:8080/$1 http://5.191.28.77:8080/$1
I understand its not exactly what you asked for, but perhaps its an acceptable alternative? I didnt test all screens, but I did test logging in and out, and hitting some of the common pages and it seems to be working
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63029#63029]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-05 11:15:18 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63038#63038

--------------------------------------------------------------
Post by bruno.galindro
RewriteEngine on
RewriteRule ^/zport($|/.*) \
http://5.191.28.77:8080/VirtualHostBase/ http://5.191.28.77:8080/VirtualHostBase/\
http/%{SERVER_NAME}:80/zport/VirtualHostRoot/_vh_zport$1 [L,P]
RewriteRule ^/(\+\+resource.*) http://5.191.28.77:8080/$1 http://5.191.28.77:8080/$1
The login sceen is showed perfectly, but, after log in, the CSS apears isn't loaded correctly. See the bellow screen:

Loading Image... Loading Image...

The sign out button works,  and the log in page is correctly displayed after log out.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63038#63038]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-05 12:14:27 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63041#63041

--------------------------------------------------------------
That exactly the issue I ran into, which led me to adding the extra rewrite line to catch the CSS

Post by bruno.galindro
RewriteRule ^/(\+\+resource.*) http://5.191.28.77:8080/$1 http://5.191.28.77:8080/$1
That line fixed the CSS on my install. You might need use firebug and see what the calls to CSS look like on your setup and tweak the rule accordingly.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63041#63041]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-05 12:43:54 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63039#63039

--------------------------------------------------------------
Yes, but even if I put that line, the CSS errors still occurs. And, even if I try to remove the "L" from the first line, the same behaviour occurs. What is the version of your Zenoss?
Post by bruno.galindro
<VirtualHost *:80>
    Documentroot /var/www
    ServerName mydomain.com
    ServerAlias *.mydomain.com
    ProxyRequests Off
    ProxyVia On
    ProxyPreserveHost On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    <Directory /var/www>
        Order deny,allow
        Allow from all
    </Directory>
    RewriteEngine on
    RewriteRule ^/ajuda$ http://www.mydomain.com/otrs/public.pl?Action=PublicFAQZoom;ItemID=5 http://www.mydomain.com/otrs/public.pl?Action=PublicFAQZoom;ItemID=5 [NE]
          ### ZENOSS
    RewriteRule ^/zport($|/.*) http://5.191.28.77:8080/VirtualHostBase/http/%{SERVER_NAME}:80/zport/VirtualHostRoot/_vh_zport$1 [P]
    RewriteRule ^/(\+\+resource.*) http://5.191.28.77:8080/$1 http://5.191.28.77:8080/$1
          ###
    <Location /painel>
        ProxyPass http://5.191.28.77/otrs/index.pl http://5.191.28.77/otrs/index.pl
        ProxyPassReverse http://5.191.28.77/otrs/index.pl http://5.191.28.77/otrs/index.pl
    </Location>
    <Location /cliente>
        ProxyPass http://5.191.28.77/otrs/customer.pl http://5.191.28.77/otrs/customer.pl
        ProxyPassReverse http://5.191.28.77/otrs/customer.pl http://5.191.28.77/otrs/customer.pl
    </Location>
    <Location /otrs-web>
        ProxyPass http://5.191.28.77/otrs-web http://5.191.28.77/otrs-web
        ProxyPassReverse http://5.191.28.77/otrs-web http://5.191.28.77/otrs-web
    </Location>
    <Location /otrs>
        ProxyPass http://5.191.28.77/otrs http://5.191.28.77/otrs
        ProxyPassReverse http://5.191.28.77/otrs http://5.191.28.77/otrs
    </Location>
</VirtualHost>
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63039#63039]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-05 13:49:28 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63042#63042

--------------------------------------------------------------
I setup my test on a 3.2.1 instance. Nothing jumps out at me in your config. Can capture one of the css calls via firebug? I can't really explain why that line would fix the css calls for me, but not you unless for some reason the css is being called differently then on my installation.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63042#63042]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
John Fisher
2011-12-05 17:22:40 UTC
Permalink
John Fisher [http://community.zenoss.org/people/jfisher] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63062#63062

--------------------------------------------------------------
Kudos for all the work done. Even my example doesn't work 100% of the time. Clearly ( at least to me) this is a bug/feature of Zope, perhaps exacerbated by Zenoss.

I can't work on this for a few days, but I have some suggestions:

1. possibly use virtual hosting in Apache to separate the Zenoss & non-Zenoss targets
2. or run Zope/Zenoss on a different IP address ( using Apache)  from the Apache-served pages.

What do you guys think?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63062#63062]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
John Fisher
2011-12-05 23:38:33 UTC
Permalink
John Fisher [http://community.zenoss.org/people/jfisher] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63066#63066

--------------------------------------------------------------
I forgot to mention this:

http://www.apachetutor.org/admin/reverseproxies http://www.apachetutor.org/admin/reverseproxies

sorry. There is an extra mod called mod-proxy-html
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63066#63066]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-06 11:24:07 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63073#63073

--------------------------------------------------------------
Deptzel,

   See the image bellow. It shows all errors encountered in the page loaded after login.

Loading Image... Loading Image...
http://mydomain.com/++resource++zenui/js/livegrid/resources/css/ext-ux-livegrid.css http://mydomain.com/++resource++zenui/js/livegrid/resources/css/ext-ux-livegrid.css
http://mydomain.com/++resource++extjs/resources/css/ext-all.css http://mydomain.com/++resource++extjs/resources/css/ext-all.css
http://mydomain.com/++resource++extjs/treegrid/treegrid.css http://mydomain.com/++resource++extjs/treegrid/treegrid.css
http://mydomain.com/++resource++zenui/css/backcompat.css http://mydomain.com/++resource++zenui/css/backcompat.css
http://mydomain.com/++resource++zenui/css/xtheme-zenoss.css http://mydomain.com/++resource++zenui/css/xtheme-zenoss.css
http://mydomain.com/++resource++zenui/css/zenoss.css http://mydomain.com/++resource++zenui/css/zenoss.css
http://mydomain.com/++resource++zenui/css/zenui3.css http://mydomain.com/++resource++zenui/css/zenui3.css
http://mydomain.com/++resource++zenui/js/livegrid/resources/css/ext-ux-livegrid.css http://mydomain.com/++resource++zenui/js/livegrid/resources/css/ext-ux-livegrid.css
    This is a part of html head source code. You'll see that all calls to the referred CSS are broken.
<head>
<base href=" http://mydomain.com/zport/dmd/ http://mydomain.com/zport/dmd/">
<title> Zenoss: Dashboard </title>
<link type="image/x-icon" href="/zport/dmd/favicon.ico" rel="icon">
<link type="image/x-icon" href="/zport/dmd/favicon.ico" rel="shortcut icon">
<link href="/++resource++extjs/resources/css/ext-all.css" type="text/css" rel="stylesheet">
Reload the page to get source for: http://mydomain.com/++resource++extjs/resources/css/ext-all.css http://mydomain.com/++resource++extjs/resources/css/ext-all.css
</link>
<link href="/++resource++extjs/treegrid/treegrid.css" type="text/css" rel="stylesheet">
Reload the page to get source for: http://mydomain.com/++resource++extjs/treegrid/treegrid.css http://mydomain.com/++resource++extjs/treegrid/treegrid.css
</link>
<link href="/++resource++zenui/js/livegrid/resources/css/ext-ux-livegrid.css" type="text/css" rel="stylesheet">
<link href="/++resource++zenui/css/xtheme-zenoss.css" type="text/css" rel="stylesheet">
Reload the page to get source for: http://mydomain.com/++resource++zenui/css/xtheme-zenoss.css http://mydomain.com/++resource++zenui/css/xtheme-zenoss.css
</link>
<link href="/++resource++zenui/css/zenoss.css" type="text/css" rel="stylesheet">
Reload the page to get source for: http://mydomain.com/++resource++zenui/css/zenoss.css http://mydomain.com/++resource++zenui/css/zenoss.css
</link>
<link href="/++resource++zenui/css/zenui3.css" type="text/css" rel="stylesheet">
Reload the page to get source for: http://mydomain.com/++resource++zenui/css/zenui3.css http://mydomain.com/++resource++zenui/css/zenui3.css
</link>
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63073#63073]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-06 13:42:29 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63074#63074

--------------------------------------------------------------
bruno,
I'm not sure why its not working. Its working for me. The only thing I can suggest at this point is to review your apache access.log as well as the Zenoss Z2.log file. Between those two files perhaps you can identify why the resource requests are not being served.

In my case without the second rule, I could see the ++resource* resources attempting to be served via apache as evident in the access.log. Once I added the second rule it started working. I'm afraid I don't have any additional to add.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63074#63074]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
John Fisher
2011-12-06 17:00:55 UTC
Permalink
John Fisher [http://community.zenoss.org/people/jfisher] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63101#63101

--------------------------------------------------------------
Bruno can you get to the CSS using a URL in your browser?
http://mydomain.com/++resource++zenui/css/zenui3.css http://mydomain.com/++resource++zenui/css/zenui3.css

If ALL your calls to CSS are broken, is it possible you've not made access to it available? To find out, just put the CSS files in the topmost directory, and change the src statement in your html.

John
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63101#63101]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
John Fisher
2011-12-06 17:15:51 UTC
Permalink
John Fisher [http://community.zenoss.org/people/jfisher] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63102#63102

--------------------------------------------------------------
*dPetzel,* when you say it works for you, do you mean:

*a page running in Zope at port 8080 can access a page served by Apache at port 80? *

In my case this would be a jQuery.get command. Hey, I should test straight html!
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63102#63102]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-12-06 18:00:22 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63105#63105

--------------------------------------------------------------
No, zope is not accessing any pages, it is simply returning markup which contains references to assets such as CSS and JS which the client browser in turn fetches. When I say it works, I mean the rewrite line for matching "++resource*" works in that it apache accepts the requests, matches it against the re-write rule and proxies the request to zope. Zope in turn returns the asset.

If your not able to fetch the assets, its an issue with that line specifically. For me the line I provided works, but I can't say why the same line wouldnt work for someone else. Its a pretty generic rewrite without a whole lot of magic. But looking at the two log files I mentioned would provide a lot of clarify on if the rule is getting hit or not.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63105#63105]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2011-12-06 18:15:54 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63107#63107

--------------------------------------------------------------
Below is what I'm using in production here at Rackspace in Zenoss v2.5.2, v3.2.1 and v.4.1.0. It's reverse proxy for SSL facility and implements load balancing / failover.

--Shane (Hackman238)

/etc/httpd/conf.d/zenoss.conf:
<VirtualHost zenoss.rackspace.net:443>
    ProxyVia On
    ProxyTimeout 1000
    ProxyPass /balancer-manager !
    ProxyPass /viewvc/ !
    ProxyPass /policyd/ !
    ProxyPass / balancer://zopes/VirtualHostBase/https/zenoss.rackspace.net:443/VirtualHostRoot/ stickysession=balancer_zopes nofailover=Off
    ProxyPassReverse / balancer://zopes/VirtualHostBase/https/zenoss.rackspace.net:443/VirtualHostRoot/

    ProxyPreserveHost On
    Header add Set-Cookie "balancer_zopes=route.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED
    <Proxy balancer://zopes>
            BalancerMember http://127.0.0.1:9080  lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server9080
            BalancerMember http://127.0.0.1:10080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server10080
            BalancerMember http://127.0.0.1:11080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server11080
            BalancerMember http://127.0.0.1:12080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server12080
            BalancerMember http://127.0.0.1:13080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server13080
            BalancerMember http://127.0.0.1:14080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server14080
            BalancerMember http://127.0.0.1:15080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server15080
            BalancerMember http://127.0.0.1:16080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server16080
            BalancerMember http://127.0.0.1:17080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server17080
            BalancerMember http://127.0.0.1:18080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server18080
            BalancerMember http://127.0.0.1:19080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server19080
            BalancerMember http://127.0.0.1:20080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server20080
            BalancerMember http://127.0.0.1:21080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server21080
            BalancerMember http://127.0.0.1:22080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server22080
            BalancerMember http://127.0.0.1:23080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server23080
            BalancerMember http://127.0.0.1:24080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server24080
            BalancerMember http://127.0.0.1:25080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server25080
            BalancerMember http://127.0.0.1:26080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server26080
            BalancerMember http://127.0.0.1:27080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server27080
            BalancerMember http://127.0.0.1:28080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server28080
            BalancerMember http://127.0.0.1:29080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server29080
            BalancerMember http://127.0.0.1:30080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server30080
            BalancerMember http://127.0.0.1:31080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server31080
            BalancerMember http://127.0.0.1:32080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server32080
            BalancerMember http://127.0.0.1:33080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server33080
            BalancerMember http://127.0.0.1:34080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server34080
            BalancerMember http://127.0.0.1:35080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server35080
            BalancerMember http://127.0.0.1:36080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server36080
            BalancerMember http://127.0.0.1:37080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server37080
            BalancerMember http://127.0.0.1:38080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server38080
            BalancerMember http://127.0.0.1:39080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server39080
            BalancerMember http://127.0.0.1:40080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server40080
            BalancerMember http://127.0.0.1:41080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server41080
            BalancerMember http://127.0.0.1:42080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server42080
            BalancerMember http://127.0.0.1:43080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server43080
            BalancerMember http://127.0.0.1:44080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server44080
            BalancerMember http://127.0.0.1:45080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server45080
            BalancerMember http://127.0.0.1:46080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server46080
            BalancerMember http://127.0.0.1:47080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server47080
            BalancerMember http://127.0.0.1:48080 lbset=1 min=1 max=2 smax=16 loadfactor=1 timeout=800 retry=30 route=server48080
            BalancerMember http://127.0.0.1:8080 lbset=2 min=1 max=4 smax=8 loadfactor=1 timeout=1000 retry=60 status=+H
            ProxySet stickysession=balancer_zopes lbmethod=byrequests nofailover=Off maxattempts=1 timeout=800
    </Proxy>

    <Location /balancer-manager>
        SetHandler balancer-manager
        Order allow,deny
        Allow from all
    </Location>


    ErrorLog logs/ssl_error_log
    TransferLog logs/ssl_access_log
    LogLevel warn

    SSLEngine on

    SSLProtocol all -SSLv2

    SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
    SSLCertificateFile /etc/httpd/ssl/zenoss.rackspace.net.crt
    SSLCertificateKeyFile /etc/httpd/ssl/zenoss.rackspace.net.key

    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
        SSLOptions +StdEnvVars
    </Files>
    <Directory "/var/www/cgi-bin">
        SSLOptions +StdEnvVars
    </Directory>

    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0

    CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63107#63107]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bruno.galindro
2011-12-06 18:22:51 UTC
Permalink
bruno.galindro [http://community.zenoss.org/people/bruno.galindro] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63108#63108

--------------------------------------------------------------
Yes. It works pretty well if you use a subdomain, like I have exposed before. In your case, the address is zenoss.rackspace.net. Now, try to to the same thing in rackspace.net/zenoss and you I'll see all of problems that we are discussing.

Dpetzel, I'll set apache to debug mode and check the apache log files and Z2 Zope log file, and give a return to you ok?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63108#63108]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2011-12-06 18:26:19 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/63109#63109

--------------------------------------------------------------
Bruno:

Ah I gotcha. I wasn't following closely, just figured drop my config that works for me. :)

What I would do is add a redirect from domain.com/zenoss to zenoss.domain.com if that's a possibility. Excuse my suggestion if it's already been suggested. :p

Best,
--Shane (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63109#63109]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Jason Finestone
2013-11-25 17:03:18 UTC
Permalink
Jason Finestone [http://community.zenoss.org/people/finejason] created the discussion

"Re: Zenoss + Apache mod_proxy"

To view the discussion, visit: http://community.zenoss.org/message/75322#75322

--------------------------------------------------------------
Your config works after a small addition to the last line.

----------------------------------

RewriteEngine on
RewriteRule ^/zport($|/.*) \
http://5.191.28.77:8080/VirtualHostBase/ http://5.191.28.77:8080/VirtualHostBase/\
http/%{SERVER_NAME}:80/zport/VirtualHostRoot/_vh_zport$1 [L,P]

RewriteRule ^/(\+\+resource.*) http://5.191.28.77:8080/$1 http://5.191.28.77:8080/$1 [L,P]

---------------------------------------------

Added [L,P] to the last line
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75322#75322]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...