Lasso 8 and 9 Side by Side on Same Server

This article provides one option for configuring Lasso 8.x and Lasso 9 to run side-by-side on the same server, in separate virtual hosts, with fastcgi enabled in Lasso 9.

Lasso 8.5 Virtual Host Defaults

/private/etc/apache2/vhost/lasso8-vhost.conf

    AddHandler lasso8-handler lasso
    AddHandler lasso8-handler lassoapp

Lasso 9 Virtual Host Defaults

/private/etc/apache2/vhost/lasso9-vhost.conf

    ScriptAlias /lasso9 /lasso9
    ScriptAlias /lasso9direct /lasso9direct

    AddType application/x-httpd-lasso9 .lasso
    Action application/x-httpd-lasso9 /lasso9direct

Lasso 8 Configuration

/private/etc/apache2/httpd.conf includes:
/private/etc/apache2/extra/httpd-userdir.conf which includes:
/private/etc/apache2/users/lasso8.conf

LoadModule lasso8_module /usr/libexec/apache2/Lasso8ConnectorforApache2.2.so

Lasso 9 Configuration

/private/etc/apache2/httpd.conf includes:
/private/etc/apache2/extra/httpd-userdir.conf which includes:
/private/etc/apache2/users/lasso9.apache2.conf

    <IfModule !fastcgi_module>
    LoadModule fastcgi_module     libexec/apache2/mod_fastcgi.so
    </IfModule>

    <Location ~ "/(lasso9direct|lasso9)/">
        Order allow,deny
        Allow from all
    </Location>

    # This line will cause lassoserver to be started automatically when apache is started
    # When running lassoserver manually, comment out this line
    FastCGIServer /Applications/Lasso9Beta/LassoExecutables/lassoserver -initial-env LASSO9_HOME=/Applications/Lasso9Beta -initial-env LASSOSERVER_FASTCGIPORT=8999

    # These lines point mod FastCGI towards the instance of lassoserver
    <IfModule mod_fastcgi.c>
        FastCgiExternalServer /lasso9 -host localhost:8999 -pass-header Authorization
        FastCgiExternalServer /lasso9direct -host localhost:8999 -pass-header Authorization
    </IfModule>