Results 1 to 10 of 12

Thread: Zimbra and mod_proxy

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    8
    Rep Power
    10

    Default Zimbra and mod_proxy

    I have been having a tough time putting either the web client or the AjaxTK examples on Tomcat and accessing them through Apache using mod_proxy.

    I am using Apache 2.0.55, Tomcat 5.5.12. I have done what I have always done before to make this work, adding proxyName and proxyPort to Tomcat's server.xml, and ProxyPass and ProxyPassReverse to Apache's httpd.conf. That is:

    <Connector port=8080 ...
    proxyName="www.mycompany.com" proxyPort="80"/>

    in Tomcat's server.xml and:

    ProxyRequests Off
    ProxyPass / http://www.mycompany.com:8080/
    ProxyPassReverse / http://www.mycompany.com:8080/

    in Apache's httpd.conf.

    I have built both the ajax.war from AjaxTK and zimbra.war from the web mail client, and they work flawlessly in Tomcat without proxying.

    When I turn proxying on as above, I can, for example, access all the Tomcat examples fine through the proxy. When I access http://www.mycompany.com/ajax, I am directed to the examples.html page, and all the links seem to be correct. When I actually select one of the examples, things seem to get busy with the initial download of all the included .js files, but eventually, the page is blank. I suspect the DwtShell hasn't been created, because, unlike when I access them directly through Tomcat, the browser window context menu is still available. I have compared the actual downloaded content when accessed through either Apache (port 80) or directly from Tomcat (port 8080), and it seems the actual rendered pages are identical. I can only assume that there is a problem with the included or imported files, but all the URL's are relative to the server root, and should work fine.

    I'm sure there is just something stupid I am doing wrong, but I am stumped at this point. Any ideas would be greatly appreciated.

    Dave

  2. #2
    Join Date
    Oct 2005
    Posts
    8
    Rep Power
    10

    Default

    OK, never mind. It was something stupid. God bless Norton IS and their injection of "helpful" script into the http stream. Now I also know why I could never get the debug window to come up (the next frustration I was going to ask about).

    Sorry to bother everybody.

    Dave

  3. #3
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Quote Originally Posted by dsmalley
    OK, never mind. It was something stupid. God bless Norton IS and their injection of "helpful" script into the http stream. Now I also know why I could never get the debug window to come up (the next frustration I was going to ask about).

    Sorry to bother everybody.

    Dave
    Is there an option in Norton IS to disable this "feature". Or did you have to totally disable Norton? A few others have had this problem and it'd be nice if we could document this for others who are running Norton.

  4. #4
    Join Date
    Oct 2005
    Posts
    8
    Rep Power
    10

    Default

    There is an option to disable this "feature", at least in IS 2004, which is what I'm using. On the main settings page, click on "Ad Blocking", and then push the "Configure" button. In the dialog which appears, uncheck "Turn on Popup Window Blocking", then click "OK". That's it.

    I don't think disabling this is much of a problem, because most modern browsers have popup blocking (I know IE and Firefox do), and they don't inject script to accomplish it.

    What would be best, of course, would be to disable this "feature" for specific hosts or IP ranges ("localhost" would seem a particularly good candidate for this ), but no such luck. Even sites defined as fully trusted in the IS Firewall are "protected" this way.

    Hope this helps.

    Dave

  5. #5
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    10

    Default

    But still zimbra does have to work around users with N IS instead of just telling them to disable something.

    There must be some sort of workaround by code...



    By the way I'm using zimbra right now and it just crash again after I just did so much typing. Too bad debug window does not show what happened.

    I've just got the steel theme on to my computer and now lets see what I can do with it hmm Outlook 2003 blue-luna style theme?
    Last edited by PotatoBob; 10-30-2005 at 08:09 PM.

  6. #6
    Join Date
    Oct 2005
    Posts
    8
    Rep Power
    10

    Default

    Yes, a work-around in code would be nice, but I'm not sure it's reasonable to expect. The IS firewall literally adds javascript to http responses which already have script in them (it seems to leave static HTML alone). The bottom line is their (Norton's) script cripples the "window" object in the DOM, and asking somebody to code around this may be impossible, especially when you are doing things as complex as the DWT.

    I don't know what Zimbra's response would be, but when somebody tells me they reserve the right to modify the code I write, but I have to somehow make sure it works anyway, well...

    If you insist on running Internet Explorer, for instance, with the highest possible security level, it just plain disables all script, period. Good luck finding an AJAX client that can solve that problem in code. If you must run Norton IS with popup blocking in the firewall, rather than in the browser, you may be out of luck. Just my two cents worth.

    Dave

  7. #7
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Quote Originally Posted by PotatoBob
    But still zimbra does have to work around users with N IS instead of just telling them to disable something.

    There must be some sort of workaround by code...
    If anyone finds one I'll send you some Zimbra wear As the next post said it's not easy when they add script to the code.

    dsmalley, can you post the script they are adding? That might help folks here think out loud with us.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •