Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • For Debian/Ubuntu distros
    • Install mod_jk

      Code Block
      titleInstall mod_jk
      languagebash
      sudo apt-get install libapache2-mod-jk
    • Navigate to the Apache mods Mod_JK configuration directory

      Code Block
      languagebash
      cd /etc/libapache2-mod-jk
    • Edit httpd-jk.conf, adding the JK Mounts for uPortal. In the sample below, most of the portlets have mount points

      Code Block
      ...
          JkMount /uPortal* loadbalancer
          JkMount /uPortal/* loadbalancer
          JkMount /ResourceServingWebapp/* loadbalancer
          JkMount /Announcements/* loadbalancer
          JkMount /CalendarPortlet/* loadbalancer
          JkMount /email-preview/* loadbalancer
          JkMount /jasig-widget-portlets/* loadbalancer
          JkMount /NewsReaderPortlet/* loadbalancer
          JkMount /NotificationPortlet/* loadbalancer
          JkMount /SimpleContentPortlet/* loadbalancer
          JkMount /WeatherPortlet/* loadbalancer
          JkMount /WebProxyPortlet/* loadbalancer
      </IfModule>
    • Edit worker.properties. The file is well documented, so read through it first. We want to set the some locations and add loadbalancer to worker list

      Code Block
      ...
      workers.tomcat_home=/opt/tomcat
      ...
      workers.java_home=/opt/java
      ...
      worker.list=ajp13_worker,loadbalancer
      ...
      #Fix bug: localhost does not work. Use 127.0.0.1 or real IP
      worker.ajp13_worker.host=127.0.0.1
    • Enable mod_jk

      Code Block
      a2enmod jk
    • Add JK mounts to VirtualHost  of desired site, i.e. /etc/apache2/sites-enabled/default-ssl.conf

      Code Block
      <VirtualHost>
          ...
          JKMountCopy On
      </VirtualHost>
    • Restart Apache after checking syntax of config files is okay

      Code Block
      languagebash
      apache2ctl -t
      sudo service apache2 restart
  • For other distributions

...