All pastes #640971 Raw Edit

Someone

public text v1 · immutable
#640971 ·published 2007-07-31 20:38 UTC
rendered paste body
    <Perl>
        use lib qw( /Library/WebServer/coruzziLab/lib );
    </Perl>

    # Preload your entire application
    PerlModule coruzziLab

    <VirtualHost *>
        ServerName   coruzzilab.bio.nyu.edu
        DocumentRoot /Library/WebServer/coruzziLab/root

        <Location />
            SetHandler       perl-script
            PerlHandler      coruzziLab
        </Location>

        # you can also run your app in any non-root location
        #<Location />
        #    SetHandler      perl-script
        #    PerlHandler     coruzziLab
        #</Location>

        # Make sure to let Apache handle your static files
        # (And remember to remove the Static::Simple plugin in production)
        <Location /static>
            SetHandler      default-handler
        </Location>
    </VirtualHost>