Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    smartgwt behind apache

    hi,
    we have an tomcat server behind an apache www server due firewall reasons. therefore my question:
    is it possible to forward, with apache writerules, a smartgwt-client request to the tomcat server? i have tried this and the application starts up but the first rpc call failed with an error response 500 (internal server error) and in the apache/tomcat logs there is no error message.

    thanks for any help

    cheers
    juergen

    #2
    Hi,

    I use mod proxy_ajp for this and it works fine with RPC:
    Code:
     
    >cat /etc/tomcat6/server.xml
     <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!--  <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> -->
    <Connector port="8010" protocol="AJP/1.3" URIEncoding="UTF-8"
    		   scheme="http" secure="false" proxyName="mydomain.com" proxyPort="80"
    		   compression="on"
    		   compressionMinSize="2048"
    		   noCompressionUserAgents="gozilla, traviata"
    		   compressableMimeType="text/html,text/xml,application/x-javascript,text/javascript,text/css"/>
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" URIEncoding="UTF-8"
    		   scheme="https" secure="true" proxyName="mydomain.com" proxyPort="443"
    		   compression="on"
    		   compressionMinSize="2048"
    		   noCompressionUserAgents="gozilla, traviata"
    		   compressableMimeType="text/html,text/xml,application/x-javascript,text/javascript,text/css"/>
    Code:
     
    >cat /etc/apache2/workers.properties
    worker.list=cmsWorker
    worker.cmsWorker.type=ajp13
    worker.cmsWorker.host=localhost
    worker.cmsWorker.port=8009
    worker.cmsWorker.lbfactor=1
    Code:
     
    >cat  /etc/apache2/jk.conf
    JkWorkersFile          /etc/apache2/workers.properties
    JkLogFile              /var/log/apache2/mod_jk.log
    JkLogLevel             debug
    JkMount                /cms* cmsWorker
    Code:
     
    >cat /etc/apache2/sites-enabled/smartgwtprojectOnMyDomain.conf
    <VirtualHost *>
       ServerName mydomain.com
    ProxyRequests Off
       <Proxy *>
            AddDefaultCharset off
            Order deny,allow
            Deny from none
            Allow from localhost
       </Proxy>
    ProxyPass /cms ajp://localhost:8009/cms
    ProxyPassReverse /cms https://localhost/cms
    </VirtualHost *>
    Maybe ajp is also appropriate in your case. Hope I haven't forgotten something.

    Regards

    Comment

    Working...
    X