Fri, 22 Feb 2019
mst is my favorite Perl programmer. He has a wonderful series outlining his "opinionated version of Task::Kensho" called mstpan. Here are all the articles collated:
- mstpan 1 - Web Frameworks
- mstpan 2 - Web Deployment
- mstpan 3 - XML
- mstpan 4 - HTML
- mstpan 5 - Files
- mstpan 6 - Databases
- mstpan 7 - JSON
- mstpan 8 - Async
- mstpan 9 - Library deployment
- mstpan 10 - Perl VM deployment
- mstpan 11 - Distribution Building
- mstpan 12 - Object Orientation
- mstpan 13 - SOAP
- mstpan 14 - Exporting
- mstpan 15 - Email
- mstpan 16 - Logging
- mstpan 17 - Interactive shells
Wed, 07 Feb 2018
Routing Apache through Perl Catalyst PSGI Server
Here's how you do it:
<VirtualHost *:80>
ServerName server.example.com
DocumentRoot /var/www/server
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /icons !
ProxyPass / http://localhost:5000/ keepalive=On
ProxyPassReverse / http://localhost:5000/
#RequestHeader set X-Forwarded-HTTPS "0"
</VirtualHost>
Run psgi app with Starman:
#!/bin/sh sudo starman --l :5000 /var/www/dhamma/Dhamma-Maintenance/app.psgi --daemonize --pid /var/run/dhamma_maintenance.pid --error-log /var/log/starman/error.log
