![]() ![]() Something’s wrong on my system… perl -version In this case, is simply the original Oddmuse script, unchanged. Mojolicious wrapper in ~/farm/: #! /usr/bin/env perlĮnv => ,Įrrlog => 'alexschroeder.log', # path to where STDERR from cgi script goes The above means that all requests to htpp://alexschroeder.ch:8080/wiki and htpp://will be handled by Oddmuse. Toadfarm setup in ~/farm/farm: #!/usr/bin/env perl SSLCertificateChainFile /home/alex/ssl/GandiStandardSSLCA2.pem SSLCertificateKeyFile /home/alex/ssl/alexschroeder.key SSLCertificateFile /home/alex/ssl/alexschroeder.crt Options ExecCGI Includes Indexes MultiViews SymLinksIfOwnerMatch The two ProxyPass instructions at the bottom are the important bits: And in order to force myself to test it, I’ve switched this wiki over to the new setup!įirst, tell Apache to act as a reverse proxy and pass all /wiki requests to the new server. The Mojolicious app itself is then started by Toadfarm. Oddmuse itself will keep loading the config file and all that, but it’s still much better than before. When running under Mojolicious, we no longer load Perl and we compile Oddmuse just once. When running as a CGI script, every request loads Perl and compiles all the modules – including the CGI module itself – and Oddmuse and the config files. It won’t be as perfect as a true Mojolicious app, but it will still be much faster than a simple CGI script. I’m trying to run Oddmuse within a Perl web framework: Mojolicious using Mojolicious::Plugin::CGI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |