Skip to content

Instantly share code, notes, and snippets.

@brianmed
Created June 16, 2013 23:23
Show Gist options
  • Save brianmed/5793820 to your computer and use it in GitHub Desktop.
Save brianmed/5793820 to your computer and use it in GitHub Desktop.
Mojolicious deployment with Apache, VirtualHosts, mod_perl, and Plack
<VirtualHost *:80>
ServerName infoservant.com
ServerAlias www.infoservant.com
ErrorLog logs/infoservant.com-error_log
CustomLog logs/infoservant.com-access_log combined
DocumentRoot /opt/infoservant.com/docroot
<Location />
Order allow,deny
Allow from all
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/infoservant.com/docroot/info_servant/script/info_servant
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment