Versions Compared

Key

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

...

These instructions should work for anyone that wants a simple setup of a single Tomcat instance fronted by a single Apache HTTP server. These instructions are for OS X, so your mileage may vary.

Configure Sakai

In sakai.properties, adjust your serverUrl:

Code Block
serverUrl=http://localhost:80

...

  1. Navigate to your Apache directory:
    Code Block
    cd /etc/apache2
    
  1. Open httpd.conf and scroll to the large LoadModule section. Ensure you have the following uncommented:
    Code Block
    LoadModule proxy_module libexec/apache2/mod_proxy.so
    LoadModule proxy_ajp_module libexec/apache2/mod_proxy_ajp.so
    
  1. In my httpd.conf, right at the bottom there is a line:
    Code Block
    Include /private/etc/apache2/other/*.conf
    
    This will load in all other config files in the other/ directory. In the next step we will create an ajp.conf file and this line will load it. If you don't have this line, create it, or a similar line to load in the ajp.conf file we create in the next step. Save and close httpd.conf
  1. Create an ajp.conf file. You could put this the configuration for AJP in the main httpd.conf file but I prefer to keep things separated.
    Code Block
    sudo touch other/ajp.conf
    
  1. Open ajp.conf and paste in the following:
    Code Block
    ProxyRequests Off
    <Proxy *>
            Order deny,allow
            Deny from all
            Allow from localhost
    </Proxy>
    ProxyPass 		/ ajp://localhost:8009/
    ProxyPassReverse 	/ ajp://localhost:8009/
    

...