Apache front Tomcat configure for uPortal

To use appache http server in front of tomcat

 

  1. load the setting in a seperated file into httpd.conf under apache http server conf folder.
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    ProxyRequests Off
    <Proxy *>
            Order deny,allow
            Deny from all
            Allow from xxx.xxx.xxx.edu.au (your computer name, without http://)
    </Proxy>
    ProxyPass         / ajp:// xxx.xxx.xxx.edu.au:8019/ retry=0
    ProxyPassReverse     / ajp:// xxx.xxx.xxx.edu.au:8019
    / retry=0
     
  2. tomcat configure file: server.xml,
    • comment out 8080 connector,
    • enable the <Connector port="8019 " address="xxxx.xxx.xx.edu.au"  enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

 

Note : the port number must match

你可能感兴趣的:(apache,tomcat,xml)