Skip to content

Instantly share code, notes, and snippets.

Created September 25, 2009 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/193762 to your computer and use it in GitHub Desktop.
Save anonymous/193762 to your computer and use it in GitHub Desktop.
if [ ! -d /var/cache/git ]; then mkdir -p /var/cache/git; fi
(cd /var/cache/git; git clone git://github.com/fapestniegd/wcyd.git )
apt-get install -y apache2-mpm-prefork libapache2-mod-perl2 \
libcatalyst-engine-apache-perl perlmagick \
libcatalyst-modules-extra-perl libcatalyst-modules-perl \
libcatalyst-perl libcatalyst-plugin-session-fastmmap-perl \
libcatalyst-view-tt-perl libhtml-prototype-perl
#############
# httpd.conf
#############
PerlSwitches -I/var/cache/git/wcyd/devel/omnetscient/lib
PerlModule omnetscient
#<VirtualHost..>
<Location />
SetHandler modperl
PerlResponseHandler omnetscient
</Location>
#</VirtualHost..>
###################
# non-root location
###################
<Location /myapp>
SetHandler modperl
PerlResponseHandler MyApp
</Location>
##########################
# Static content override
##########################
DocumentRoot /var/www/MyApp/root
<Location /static>
SetHandler default-handler
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment